From: Andrew Beverley <andy@andybev.com>
To: Lloyd Standish <lloyd@crnatural.net>
Cc: netfilter@vger.kernel.org
Subject: Re: trouble setting default route for load-balancing routing tables
Date: Sun, 20 Nov 2011 20:32:29 +0000 [thread overview]
Message-ID: <1321821149.2382.1042.camel@andybev-desktop> (raw)
In-Reply-To: <op.v482atdzx1lyi3@debiandesk2.net>
> > I assume that you have no need to keep the same connection stream on the
> > same interface? If you do, you can use netfilter marks (and netfilter
> > connection tracking) to do the load balancing instead, as described on
> > this page:
>
> I may have to do that, but from what I've read, rule like the ones I
> posted above are supposed to be evaluated before the default
> "nexthopping" route in table main, because of the rules numbering, and
> that's the way my rules appear:
Correct, they will be evaluated first.
What I meant was that if you have a stream of packets all to do with one
connection (such as an FTP download) and you want all the packets for
that connection to go over the same link, then you will need to use
netfilter connection tracking for your iproute rules.
If your internet links are independent then you will need to do this in
order to not break connection streams.
> My script has to reconfigure the firewall when an uplink fails and
> again when it recovers connectivity. I used a program called lsm
> (link status monitor, http://lsm.foobar.fi/) for this.
Thanks for that. I wish I'd known that earlier, as I have just written
my own basic version!
> I think this
> will be useful to others. When I get it all working I'll post it on
> my website and post here.
I've been working on a project for something similar. I'll also post it
to this list shortly for the benefit of others.
Andy
prev parent reply other threads:[~2011-11-20 20:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-20 2:11 trouble setting default route for load-balancing routing tables Lloyd Standish
2011-11-20 14:16 ` Andrew Beverley
2011-11-20 14:53 ` Lloyd Standish
2011-11-20 15:10 ` Lloyd Standish
2011-11-20 20:34 ` Andrew Beverley
2011-11-20 20:57 ` Lloyd Standish
2011-11-20 20:32 ` Andrew Beverley [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=1321821149.2382.1042.camel@andybev-desktop \
--to=andy@andybev.com \
--cc=lloyd@crnatural.net \
--cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).