multiple inet and local connectivity

Linux Advanced Routing and Traffic Control

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

 



Hi,

I have 1 local network (eth0) and 2 internet connections.
I used the technique described at 4.2 in the LARTC to make a propper
connection to/from the both internet connections. This works fine.

I also use SNAT to provide an internet connection from my local net
(eth0). I use this iptables line:

iptables -A POSTROUTING -t nat -o eth1 -j SNAT --to-source 123.123.123.123
(123.123.123.123 is the IP address of the eth1 interface).

This workes fine. The problem is that I can't connect from my local
network the the IP address of eth1 and eth2!

For example: 10.0.0.2 -> 123.123.123.123 doesn't work, but
             10.0.0.2 -> 10.0.0.1 does work (eth0 address)

Also 10.0.0.2 -> 234.234.234.234 ain't working (eth2 address)

I can't seem to fix it. I think I need some additional routing rules, but
which ones I can't seem to find out.

Anybody got any tips?

Stephan


_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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