From: Stef Coene <stef.coene@docum.org>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] htb ratelimite a single source IP
Date: Tue, 28 Jan 2003 21:24:22 +0000 [thread overview]
Message-ID: <marc-lartc-104378913929641@msgid-missing> (raw)
In-Reply-To: <marc-lartc-104378499822507@msgid-missing>
On Tuesday 28 January 2003 21:20, Phil Doroff wrote:
> Okay, I'm having a complete brainfart here, I apologize for the stupidity
> of the question. Just a bit tired.
>
> I have a customer on a shared box, who I gave a dedicated IP to. I also
> have a router in between our uplink and him, and I need to apply a
> ratelimit (via htb) on his IP to 10mbit/sec. I'd also like to do some fair
> queuing just so each connection gets an equal amount of bandwidth if it
> wants it (trying to stuff 35Mbit of big downloads into 10Mbit.. it's not
> going to be pretty).
>
> Unfortunately I cannot seem to figure out how to just ratelimit based on
> the source IP, rather than the interface itself. Obviously ratelimiting
> our GigE interface to 10meg/sec globally for all customers would be a Very
> Bad(tm) thing to do. ;)
>
> I know other folk do this, so even just example scripts will give me all I
> need to get me jumpstarted.
I have some scripts/docs on www.docum.org.
Some tips : you can only shape outgoing traffic with htb (there is a imq
device that you can be sued to use htb for incoming traffic). For the htb
setup, create 1 parent class of 1gigabit, 2 child classes : 10mbit for you
custumor, 990mbit for the other traffic. You can get some fairness if you
add sfq qdisc to the classes.
I hope this help.
Stef
--
stef.coene@docum.org
"Using Linux as bandwidth manager"
http://www.docum.org/
#lartc @ irc.oftc.net
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
prev parent reply other threads:[~2003-01-28 21:24 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-28 20:20 [LARTC] htb ratelimite a single source IP Phil Doroff
2003-01-28 21:24 ` Stef Coene [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=marc-lartc-104378913929641@msgid-missing \
--to=stef.coene@docum.org \
--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 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.