Results 1 to 1 of 1
Hello! I have two interfaces I'm trying to load balancing over with the gateway box doing SNAT for the LAN. Here are the rules I've setup so far. The problem ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-17-2007 #1
- Join Date
- Oct 2007
Multiple Gateways and SNAT
iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 220.127.116.11
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 18.104.22.168
ip route add default scope global nexthop via 22.214.171.124 dev eth2 weight 1 nexthop via 126.96.36.199 dev eth1 weight 1
ip rule add from 188.8.131.52 lookup 200
ip rule add from 184.108.40.206 lookup 201
ip rule add default via 220.127.116.11 dev eth2 tab 200
ip rule add default via 18.104.22.168 dev eth1 tab 201