netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@computergmbh.de>
Cc: Netfilter Development Mailinglist <netfilter-devel@vger.kernel.org>
Subject: Re: [RFC NETFILTER 0/4]: rate estimator target/match for load-based routing
Date: Sun, 25 Nov 2007 18:17:35 +0100	[thread overview]
Message-ID: <4749AE2F.40000@trash.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0711251813580.9477@fbirervta.pbzchgretzou.qr>

Jan Engelhardt wrote:
> On Nov 25 2007 18:11, Patrick McHardy wrote:
>> # route based on available bandwidth
>> iptables -t mangle -A BALANCE -m helper --helper ftp \
>>                              -m connmark --mark 0x0 \
>>                              -m rateest --rateest-delta \
>>                                         --rateest1 eth0 \
>>                                         --rateest-bps1 2.5mbit \
>>                                         --rateest-gt \
>>                                         --rateest2 ppp0 \
>>                                         --rateest-bps2 2mbit \
>>                              -j CONNMARK --set-mark 0x1 
>>
> Ah gotcha. I smell an implicit -m conntrack --ctstate NEW :-)


Right, that would be easier to read. It a left-over from a
previous attempt where I used periodic rebalancing by resetting
the mark to 0x0. Still thinking about something like that for
the case that a connection is routed over the slower line and
the faster one gets free.



      reply	other threads:[~2007-11-25 17:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-25 17:11 [RFC NETFILTER 0/4]: rate estimator target/match for load-based routing Patrick McHardy
2007-11-25 17:15 ` Jan Engelhardt
2007-11-25 17:17   ` Patrick McHardy [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=4749AE2F.40000@trash.net \
    --to=kaber@trash.net \
    --cc=jengelh@computergmbh.de \
    --cc=netfilter-devel@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).