I believe the route command is the one you are looking for. It is not an iptables command btw.
On machine A with IP 10.0.1.3 type as root: route add -host 10.0.0.2 gw 10.0.0.2 dev eth0
On machine B with ip 10.0.0.2 type as root: route add -host 10.0.1.3 gw 10.0.1.3 dev eth0
Hope this helps.
--
No trees were harmed in the transmission of this message, however a large number
of electrons were seriously inconvenienced.
Quoting Roy Souther <[EMAIL PROTECTED]>:
I have two static IP addresses on my ADSL. Both are running a Smoothwall that directs all Internet packets to the ADSL gateway. Both connect the ADSL through a 10 Mb switch.
I want to send data between them without going through ADSL gateway. I know I can use iptables to create a rule for the outbound NIC that will redirect data to a given IP address but I don't know iptables very well.
What would the commnad look like to do this?
--------------------------------------------------- This message was sent using Echostar Secure Webmail
pgpUvuIiO3Hel.pgp
Description: PGP Digital Signature
bin4noXSYnh3F.bin
Description: PGP Public Key_______________________________________________ clug-talk mailing list [email protected] http://clug.ca/mailman/listinfo/clug-talk_clug.ca Mailing List Guidelines (http://clug.ca/ml_guidelines.php) **Please remove these lines when replying

