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


Hi,

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 192.168.44.1 dev eth2 weight 1 nexthop via 192.168.43.1 dev eth1 weight 1


And the critical part in my firewall is this:

iptables -A POSTROUTING -t nat -s 172.20.0.0/255.255.0.0 -o eth1 -j SNAT --to-source 192.168.43.2
iptables -A POSTROUTING -t nat -s 172.20.0.0/255.255.0.0 -o eth2 -j SNAT --to-source 192.168.44.2

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


Regards,
Martin