From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zoilo Gomez Date: Tue, 27 Jun 2006 19:15:38 +0000 Subject: Re: [LARTC] load balancing over 4 lines to one provider Message-Id: <44A183DA.9020407@xs4all.nl> List-Id: References: <20060627153538.kvtovapugesgk0w0@webmail.fcq.unc.edu.ar> In-Reply-To: <20060627153538.kvtovapugesgk0w0@webmail.fcq.unc.edu.ar> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Marcos Dione wrote: > yes, this is a crazy subject. I have 4 ADSL lines to the same provider, which >even have the same gateway. Those lines are connected to the same machine (more >crazyness: even connected to the same nic. it works fine, I swear). this machine >will serve this conenction to a local net. > > so, I setup the ifaces correctly, everything works. I add balancing using this >command: > ># ip route replace default nexthop dev ppp0 nexthop dev ppp1 nexthop dev ppp2 >nexthop dev ppp3 > > I try this downloading a iso image using BT and checking with iptraf. the load >gets balanced. fine. > > then I issue this command to setup masquerading for each ppp line: > ># for i in 1 2 3 4; do > > >>sudo iptables -t nat -A POSTROUTING -s 172.16.16.0/22 -o ppp$i -j MASQUERADE; >>done >> >> > > > Have you tried instead: iptables -t nat -A POSTROUTING -s 172.16.16.0/22 -o ppp+ -j MASQUERADE ? I do not know the implementation, but perhaps one rule with a '+' makes a difference over summing up the 4 individual interfaces. Interesting setup you have anyway! _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc