From: "Paweł Staszewski" <pstaszewski@artcom.pl>
To: Rob Sterenborg <rob@sterenborg.info>, netfilter@lists.netfilter.org
Subject: Re: help on load balancing
Date: Thu, 15 Dec 2005 14:31:20 +0100 [thread overview]
Message-ID: <43A17028.6040101@artcom.pl> (raw)
In-Reply-To: <60346.193.173.147.3.1134653157.squirrel@webmail.sterenborg.info>
You can't do load balance across 4 dsl link "per packet" ....
Only per session.
If your isp is doing reverse path filtering .
Try routes patch from : http://www.ssi.bg/~ja/
And it will be working fine :)
Rob Sterenborg wrote:
>On Thu, December 15, 2005 14:21, wlagmay@yanbulink.net wrote:
>
>
>>Hi Rob,
>>
>>Im sorry, I forgot to inform you that the clients are not using this
>>3 lines to go directly to the internet, instead the on the same
>>machine I install Squid proxy server, hoping that with the load
>>balance technique, squid can take advantage of the connection
>>simultaneously, so my problem actualy is the squid
>>to use the 3 lines simutaneously.
>>
>>
>
>I haven't used it myself so I'm a bit guessing here ; you may be able
>to alter locally generated packets (from Squid) using the ROUTE target
>combined with the nth match in the OUTPUT chain of the mangle table so
>the packets are diverted over the 3 NIC's.
>
>Something like :
>
>iptables -t mangle -A OUTPUT -o eth0 -m nth --counter 7 \
> --every 3 --packet 0 -j ROUTE --oif eth0
>
>iptables -t mangle -A OUTPUT -o eth0 -m nth --counter 7 \
> --every 3 --packet 1 -j ROUTE --oif eth1
>
>iptables -t mangle -A OUTPUT -o eth0 -m nth --counter 7 \
> --every 3 --packet 2 -j ROUTE --oif eth2
>
>(Where eth3 is your LAN NIC.)
>
>
>Gr,
>Rob
>
>
>
>
>>Quoting Rob Sterenborg <rob@sterenborg.info>:
>>
>>
>>
>>>On Thu, December 15, 2005 12:32, wlagmay@yanbulink.net wrote:
>>>...
>>>
>>>
>>>>Squid proxy, Im monitoring the 4 ports via MRTG and I noticed that
>>>>before It goes to link 2, link 1 must be saturated first or link1
>>>>will stop and the request is only transfered to link 2. So it
>>>>
>>>>
>>>seems
>>>
>>>
>>>>that it is not doing a load balance, my idea of load balance is
>>>>utilizing the 3 lines simultaneously.
>>>>
>>>>
>>>...
>>>
>>>Perhaps you can use the nth patch.
>>>http://www.netfilter.org/projects/patch-o-matic/pom-base.html#pom-base-nth
>>>
>>>
>>>Gr,
>>>Rob
>>>
>>>
>
>
>
>
next prev parent reply other threads:[~2005-12-15 13:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-15 11:32 help on load balancing wlagmay
2005-12-15 12:52 ` Rob Sterenborg
2005-12-15 13:21 ` wlagmay
2005-12-15 13:25 ` Rob Sterenborg
2005-12-15 13:31 ` Paweł Staszewski [this message]
2005-12-15 14:12 ` wlagmay
2005-12-15 14:12 ` Paweł Staszewski
2005-12-15 14:20 ` Seferovic Edvin
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=43A17028.6040101@artcom.pl \
--to=pstaszewski@artcom.pl \
--cc=netfilter@lists.netfilter.org \
--cc=rob@sterenborg.info \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox