I'm putting this up for a little debate since I'd like some qualified
I'd like to build a box which have purpuse of being a NAT-gateway for a
LAN to the internet. The access is going through four equally sized
2Mb/512Kb ADSLs, giving something that "feels" like a 8Mb/2Mb link.
Here's what I think is necessary.
eth0: LAN, 10.0.0.1/8
eth1: WAN, 184.108.40.206, def. gw is 220.127.116.11
eth2: WAN, 18.104.22.168, def. gw is 22.214.171.124
eth3: WAN, 126.96.36.199, def. gw is 188.8.131.52
eth4: WAN, 184.108.40.206, def. gw is 220.127.116.11
1. Setup the routing.
Have to have the default route going out of our four interfaces:
# ip route add default equalize \
nexthop via 18.104.22.168 dev eth1 \
nexthop via 22.214.171.124 dev eth2 \
nexthop via 126.96.36.199 dev eth3 \
nexthop via 188.8.131.52 dev eth4
2. Setup four almost equal SNATs, since I do have four static and public
IPs. Something like:
# iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 184.108.40.206
# iptables -t nat -A POSTROUTING -o eth2 -j SNAT --to 220.127.116.11
# iptables -t nat -A POSTROUTING -o eth3 -j SNAT --to 18.104.22.168
# iptables -t nat -A POSTROUTING -o eth4 -j SNAT --to 22.214.171.124
First we tell the box that there's one default route, going out the four
WAN interfaces. This is the routingdecision.
After the routingdecision has been made, we tell the box that it has to
masquerade the outgoing packets as the interface they're leaving the box
Can this be done with success?
What is missing if any?
Any comments, please?
Mvh. / Best regards,
S* Suder <http://www.veryComputer.com/;
ICQ UIN 4133803