Linux Netfilter discussions
 help / color / mirror / Atom feed
From: John Leach <john@ecsc.co.uk>
To: Gabor Csuri <csucsu@dunasor.hu>
Cc: netfilter@lists.netfilter.org
Subject: Re: mark connections based a quote
Date: 15 Nov 2002 12:43:08 +0000	[thread overview]
Message-ID: <1037364188.1417.28.camel@dwight> (raw)
In-Reply-To: <NGBBLBOMOLDNJFMPIGKLGEBACFAA.csucsu@dunasor.hu>

[-- Attachment #1: Type: text/plain, Size: 1169 bytes --]

Hi Gabor,

This is probably best achieved with some of Linux's advancing routing
and queuing features rather than with Netfilter.

You should be able to setup a simple token bucket queue to allow full
traffic speeds for a burst of 2MB and then lower the rate to whatever
you like.

see the Advanced routing HOWTO at
http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/index.html

specifically the Queuing disciplines section
http://www.tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.qdisc.html

It's all rather impressive.

John.

On Thu, 2002-11-14 at 22:01, Gabor Csuri wrote:
> Hi All,
> 
>  I need to restrict some connections into a bandwidth on my local network.
> The long downloads (and uploads) are very bad for our 800k/128k bandwidth.
> I thougth I would restrict the long downloads into a lower bandwidth, but I
> don't know how can I mark the long downloads.
> Can I mark the packets which are a part of a long connection maybe like
> this:
> iptables -m cquote --cquote 2000000 -j MARK --set-mark 1
> means it marks packet within a connection which are over 2MB.
> 
> How can I do this?
> 
> Thanks in advice, Gabor Csuri.
> 
> 
> 


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2002-11-15 12:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-14 22:01 mark connections based a quote Gabor Csuri
2002-11-15 12:43 ` John Leach [this message]
     [not found] <FD8F124A387AD6119F7900A0D218B321487EAB@hslex01.hsl-brabantzuid.nl>
2002-11-15 13:43 ` Rob Sterenborg
2002-11-15 14:24   ` Gabor Csuri
  -- strict thread matches above, loose matches on Subject: below --
2002-11-14 21:40 Gabor Csuri

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=1037364188.1417.28.camel@dwight \
    --to=john@ecsc.co.uk \
    --cc=csucsu@dunasor.hu \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox