From mboxrd@z Thu Jan 1 00:00:00 1970 From: gypsy Date: Wed, 22 Jun 2005 14:22:39 +0000 Subject: Re: [LARTC] 3 internet connexions - Problem with my script Message-Id: <42B9742F.73483942@iswest.com> List-Id: References: <42B94202.10904@giganet.ma> In-Reply-To: <42B94202.10904@giganet.ma> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org > 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@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc