[LARTC] snooping - plan B

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2003.07.28 11:24, Jim Redman wrote:

I have a computer with two interfaces, say with addresses 192.168.1.1 and 192.168.1.2. I want to set up routing such that when I ping 192.168.1.1 it goes out through 192.168.1.2 and not to the local interface. Is this possible - all my attempts so far have been unsuccessful? If so, pointers, etc. would be gratefully appreciated.



OK, assuming this to be impossible. Let's try the ARP approach. I want to set up eth0 with ip 192.168.3.1 nat all packet addressed to 192.168.1.1 to 192.168.3.1 and ARP the address of 192.168.1.1 into eth0. I still have some problems, any suggestions appreciated. Here's what I've tried (along with many variations):


arp -i eth0 -Ds 192.168.1.1 eth0 pub
ip route add nat 192.168.1.1 via 192.168.3.1
ip rule add from 192.168.3.1 nat 192.168.1.1

this alone is not sufficient, so I've tried adding routes for 192.168.1.1

ip route add 192.168.1.1 dev eth0 and so forth. I haven't yet been successful and would apprciate any help.

Thanks,

Jim

--

Jim Redman
(505) 662 5156 x85
http://www.ergotech.com


[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux