> Jeremy SALMON wrote: > > Hi, > > I have a problem with my script. > > I have a debian with a kernel 2.6.8 patched with patch-2.6.8-ja1.diff > of nano.txt site. > > I have 3 internet connections : The following disagrees with the script. Double check your IP addresses. > - eth1 : > - ip : 192.168.8.75 > - gw : 192.168.8.73 > - eth2 : > - ip : 192.168.1.200 > - gw : 192.168.1.2 > - eth3 : > - ip : 192.168.2.200 > - gw : 192.168.2.1 > > and my eth0 for local network (ip : 192.168.212.235) --==snip==-- > ip rule add prio 222 table 222 > ip route add default scope global \ > nexthop via $GWE1 dev $IFE1 weight 1 \ > nexthop via $GWE2 dev $IFE2 weight 4 \ Set the above to 2 and if that does not work well enough then devise a round robin method that favors IFE2 more than 1 to 1 but less than 4. > iptables -t nat -A POSTROUTING -o $IFE3 -s $NWI/$NMI -j MASQUERADE If possible, use SNAT rather than MASQUERADE. -- gypsy _______________________________________________ LARTC mailing list LARTC@xxxxxxxxxxxxxxx http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc