Hello All,

I have two internet connections and two LAN networks.

I setup a  gateway machine and configured squid as transparent proxy.
I have two interfaces on for LAN and another in INTERNET

LAN---->switch--->gateway cum squid----->switch---->Router 1 & router 2

My ISP-A  ip is a.b.c.d and ISP-B ip is w.x.y.z

I want LAN network 172.16.1.0/24 to masquerade to a.b.c.d and LAN network
192.16.1.0/24 to w.x.y.z

Now i am using just three rules which doesn't work for my need
iptables -t nat -A PREROUTING -i eth0 -p TCP --dport 80 -j
REDIRECT --to-port 3128

iptables -t nat -A POSTROUTING -o eth1 -p tcp -s 0/0 -d 0/0 -j MASQUERADE
iptables -t nat -A POSTROUTING -o eth1 -p icmp --icmp-type ping -s 0/0 -d
0/0 -j  MASQUERADE

What should be the iptables rule to do my need

Thanks and Regards,
-shadha


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to