search for: private_ip_net

Displaying 1 result from an estimated 1 matches for "private_ip_net".

2006 Feb 11
2
Route all LAN traffic through eth2 and keep web/mail traffic on eth0
...e connected to the same switch. How can I route all LAN traffic via eth2 and keep web/mail traffic on eth0? And with this, make the LAN traffic use eth2''s IP to connect to the Internet and the PC traffic use eth0? I tested masquerading through eth2 with iptables -t nat -A POSTROUTING -s $private_ip_net/255.255.255.0 -o eth2 -j MASQUERADE But LAN could not access the Internet, although the PC could. Someone told me something about ip rules, which I tested but it seems that they did not worked as both eth0 and eth2 should use the same gateway. Please send me any comments/help regarding this issu...