Linux Advanced Routing and Traffic Control list
 help / color / mirror / Atom feed
From: james jones <jame_sj@yahoo.com>
To: lartc@vger.kernel.org
Subject: RE: [LARTC] Limit bandwidth per client
Date: Mon, 12 May 2003 16:39:19 +0000	[thread overview]
Message-ID: <marc-lartc-105275765309960@msgid-missing> (raw)
In-Reply-To: <marc-lartc-105275594907949@msgid-missing>

~From: Stuart Mackintosh <sm@opusvl.com>
~Date: 12 May 2003 17:08:10 +0100
~Subject: [LARTC] Limit bandwidth per client

~Hi all,

~I have an installation where each user on subnet 192.168.1.0/24 is
~connected via a multiplexer. 
~The problem is that if any client uses more than about 48Kb/s, the
~multiplexer crashes. 

~I need to limit each client to under this rate, say 32Kb/s. I have
~seen
~examples on creating a class per host but is there a simple way of
~saying "any host from 192.168.1.0/24" so I dont have 253 rules?

Yeah, I think I can answer this :-).

Upload mark
iptables -t mangle -A FORWARD -s 192.168.0.0/24 -j MARK --set-mark 4
Download mark
iptables -t mangle -A POSTROUTING -s ! 192.168.0.0/24 -d
192.168.0.0/24 -j MARK --set-mark 5

Then if you are using htb: just make your root qdisk, classes,
filters, and then the qdisk.

James

~Many thanks.

~stuart

~-- 

~ | http://www.opusvl.com 
~ | T: 08717 50 40 02
~ | F: 08717 50 40 03
~ | E: sm@opusvl.com 
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

  reply	other threads:[~2003-05-12 16:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-12 16:08 [LARTC] Limit bandwidth per client Stuart Mackintosh
2003-05-12 16:39 ` james jones [this message]
2003-05-13 14:32 ` David Reoch
2003-05-13 17:11 ` Stef Coene

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=marc-lartc-105275765309960@msgid-missing \
    --to=jame_sj@yahoo.com \
    --cc=lartc@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