From: Fabrice MARIE <fabrice@netfilter.org>
To: maciek@zobniow.priv.pl, netfilter-devel@lists.netfilter.org
Cc: Richard Wagner <rwagner@cloudnet.com>
Subject: Re: [NEW TARGET] MARKCB connection marking balancing
Date: Mon, 3 Mar 2003 16:53:47 +0800 [thread overview]
Message-ID: <200303031653.47644.fabrice@netfilter.org> (raw)
In-Reply-To: <3E62AF18.8010000@zobniow.priv.pl>
Dzien Dobre Maciek,
On Monday 03 March 2003 09:25, Maciek Zobniow wrote:
> Hi all!
> This is my first message to this list and I want to annouce a first
> version of my new netfilter module for connection tracking balancing.
> First maybe I will try to describe what this target should do:
> I made this as a solution for balancing connections from one LAN,
> betewen a few providers links, but I think that is possible to find
> another good usages for this target.
> Idea is quite simply: each connection (yes, connection not packet) which
> arrived to this target is marked. It recive one mark which is use for
> marking all packets from this connection. Marks are sharing by choosen
> algorithm (for now I implemented RR, WRR and special one- basing on
> amout of data for each mark for last 1000 packets).
> [...]
Just out of curiosity, how different is that from using the nth match
to do RR SNATting ?
[
i.e, Taken from the example section of the patch:
iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 --every 3 --packet 0 -j SNAT --to-source 10.0.0.5
iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 --every 3 --packet 1 -j SNAT --to-source 10.0.0.6
iptables -t nat -A POSTROUTING -o eth0 -m nth --counter 7 --every 3 --packet 2 -j SNAT --to-source 10.0.0.7
This example evenly splits connections between the three SNAT addresses.
]
Using nth, we use the fact that only the first packet of connections need to be SNATed.
This extension to the nth original patch was made by Richard. I haven't tried it myself yet though
as I have only one ISP :-)
Have a nice day,
Fabrice.
--
Fabrice MARIE
"Silly hacker, root is for administrators"
-Unknown
next prev parent reply other threads:[~2003-03-03 8:53 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-03 1:25 [NEW TARGET] MARKCB connection marking balancing Maciek Zobniow
2003-03-03 8:53 ` Fabrice MARIE [this message]
2003-03-03 15:31 ` Esteban
2003-03-03 9:12 ` Patrick Schaaf
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=200303031653.47644.fabrice@netfilter.org \
--to=fabrice@netfilter.org \
--cc=maciek@zobniow.priv.pl \
--cc=netfilter-devel@lists.netfilter.org \
--cc=rwagner@cloudnet.com \
/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.