Is this correct routing and firewall'ing?

Is this correct routing and firewall'ing?

Post by Martin Jep » Tue, 18 Nov 2003 15:15:10


I have 2 ADSL lines, where I do some load balancing, but it works very
badly=( The connections jump from one ADSL to the other randomly.

So can anyone verify that this is correct routing?:

#Default route, shares the traffic over the two lines:
action $"Starting default route: " \
/sbin/ip route add default scope global nexthop via dev eth2 weight 1 nexthop via dev eth1 weight 1

And the critical part in my firewall is this:

iptables -A POSTROUTING -t nat -s -o eth1 -j SNAT --to-source
iptables -A POSTROUTING -t nat -s -o eth2 -j SNAT --to-source

Can anyone verfity this, or does anyone have ideas, of something I could
try to change?