From: Philip Craig <philipc@snapgear.com>
To: desert@zarzamora.com.mx
Cc: netfilter@lists.netfilter.org
Subject: Re: Load Balancer Trouble, are "Routes with Memory" Possible?
Date: Thu, 01 Jun 2006 15:39:33 +1000 [thread overview]
Message-ID: <447E7D95.5000404@snapgear.com> (raw)
In-Reply-To: <20060523225646.poejqicpp0cg88gc@zarzamora.com.mx>
On 05/24/2006 01:56 PM, desert@zarzamora.com.mx wrote:
> What i need is this.
>
> 1) A connection comes from LAN trying to access an IP in WAN
> 2) Round robin (or whatever) to select any WAN pipe.
> 3) Remember that route for many minutes
> or until client closes it.
>
> I dont care if other LAN clients follow the same route or if they
> select a different route.
>
> The real trick is to mantain the route for as long as the client needs
> it.
Use CONNMARK. Save the mark for packets with a NEW state in the
POSTROUTING chain based on which interfaces was selected by the
round robin. Restore the mark for packets ESTABLISHED or RELATED
states in the PREROUTING and OUTPUT chains, and use the mark to
route it out the corresponding interface.
I posted some rules a couple of months ago, search the archives.
prev parent reply other threads:[~2006-06-01 5:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-24 3:56 Load Balancer Trouble, are "Routes with Memory" Possible? desert
2006-06-01 5:39 ` Philip Craig [this message]
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=447E7D95.5000404@snapgear.com \
--to=philipc@snapgear.com \
--cc=desert@zarzamora.com.mx \
--cc=netfilter@lists.netfilter.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.