From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Phil Doroff" Date: Tue, 28 Jan 2003 20:20:22 +0000 Subject: [LARTC] htb ratelimite a single source IP MIME-Version: 1 Content-Type: multipart/mixed; boundary="----=_NextPart_000_00B7_01C2C6D8.64C2AA70" Message-Id: List-Id: To: lartc@vger.kernel.org This is a multi-part message in MIME format. ------=_NextPart_000_00B7_01C2C6D8.64C2AA70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable 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 ------=_NextPart_000_00B7_01C2C6D8.64C2AA70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Okay, I'm having a complete brainfart = here, I=20 apologize for the stupidity of the question.  Just a bit=20 tired.
 
I have a customer on a shared box, who = I gave a=20 dedicated IP to.  I also have a router in between our uplink and = him, and I=20 need to apply a ratelimit (via htb) on his IP to 10mbit/sec.  I'd = also like=20 to do some fair queuing just so each connection gets an equal amount of=20 bandwidth if it wants it (trying to stuff 35Mbit of big downloads into = 10Mbit..=20 it's not going to be pretty).
 
Unfortunately I cannot seem to figure = out how to=20 just ratelimit based on the source IP, rather than the interface = itself. =20 Obviously ratelimiting our GigE interface to 10meg/sec globally for all=20 customers would be a Very Bad(tm) thing to do. ;)
 
I know other folk do this, so even just = example=20 scripts will give me all I need to get me jumpstarted.
 
Thanks much,
 
Phil Doroff
Five Elements, = Inc.
phil21@five-elements.com
= ICQ:=20 25285313
(763) 595-9479
------=_NextPart_000_00B7_01C2C6D8.64C2AA70-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/