From: Zoilo Gomez <zoilo@xs4all.nl>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] load balancing over 4 lines to one provider
Date: Tue, 27 Jun 2006 19:15:38 +0000 [thread overview]
Message-ID: <44A183DA.9020407@xs4all.nl> (raw)
In-Reply-To: <20060627153538.kvtovapugesgk0w0@webmail.fcq.unc.edu.ar>
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
next prev parent reply other threads:[~2006-06-27 19:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-27 18:35 [LARTC] load balancing over 4 lines to one provider Marcos Dione
2006-06-27 19:15 ` Zoilo Gomez [this message]
2006-06-28 14:04 ` Marcos Dione
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=44A183DA.9020407@xs4all.nl \
--to=zoilo@xs4all.nl \
--cc=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.