I don’t know about the first, but I don’t think it is difficult to change your routing table:
route add -host 1.2.3.4 gw 5.6.7.8
(replace 1.2.3.4 with your target IP and 5.6.7.8 with the IP of your gateway).
For 2 .: On the target type server netcat -l 1234and on the client, enter netcat 1.2.3.4 1234. (1234 is a "random" port number) (depending on your distribution, netcat can be called simply "nc".) If the connection is established, you can simply enter data on a client or server computer, press enter and see the data coming in on another machine.
source
share