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 126.96.36.199
iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 188.8.131.52
ip route add default scope global nexthop via 184.108.40.206 dev eth2 weight 1 nexthop via 220.127.116.11 dev eth1 weight 1
ip rule add from 18.104.22.168 lookup 200
ip rule add from 22.214.171.124 lookup 201
ip rule add default via 126.96.36.199 dev eth2 tab 200
ip rule add default via 188.8.131.52 dev eth1 tab 201