* [LARTC] htb ratelimite a single source IP
@ 2003-01-28 20:20 Phil Doroff
2003-01-28 21:24 ` Stef Coene
0 siblings, 1 reply; 2+ messages in thread
From: Phil Doroff @ 2003-01-28 20:20 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 959 bytes --]
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.
Thanks much,
Phil Doroff
Five Elements, Inc.
phil21@five-elements.com
ICQ: 25285313
(763) 595-9479
[-- Attachment #2: Type: text/html, Size: 1819 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] htb ratelimite a single source IP
2003-01-28 20:20 [LARTC] htb ratelimite a single source IP Phil Doroff
@ 2003-01-28 21:24 ` Stef Coene
0 siblings, 0 replies; 2+ messages in thread
From: Stef Coene @ 2003-01-28 21:24 UTC (permalink / raw)
To: lartc
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/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-01-28 21:24 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-28 20:20 [LARTC] htb ratelimite a single source IP Phil Doroff
2003-01-28 21:24 ` Stef Coene
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.