[nylug-talk] Throttling an interface

Michael R. Head burner at suppressingfire.org
Fri Dec 14 14:24:24 EST 2007


On Fri, 2007-12-14 at 12:27 -0500, Gary Mort wrote:
> Michael R. Head wrote:
> > (resending because the last post didn't seem to get through to the list
> > with my s/mime sig)
> >
> > On Fri, 2007-12-14 at 09:38 -0500, Gary Mort wrote:
> >   
> >> Can someone send me some pointers on how to throttle an interface?  IE I 
> >> want to have the following rules:
> >> For a specified network, no throttle.
> >> For everyone else, no more than 20MB/minute (or 1.8MB/second if it's 
> >> done by the second)
> >>     
> >
> > Are these multiple networks on the same interface?
> >   
> 
> Same interface.

Then, yeah, I would look at doing CBQ rules. You can throttle on IP and
port even, and it's fairly easy to write them.

> Specifically, what I want to do is run an EC2 instance at Amazon and 
> allow unlimited bandwidth for the S3 and EC2 networks(ie the ones that 
> don't cost anything to use) but throttle any charged traffic to a 
> specific amount.

Dunno how the amazon instances are setup (distro/kernel), but there
should be something like Debian's shaper package (which is based on
Redhat's old shapecfg package).

> Worst case scenario, I would throttle it for everything.
-- 
Michael R. Head <burner at suppressingfire.org>
http://www.suppressingfire.org/~burner/
http://suppressingfire.livejournal.com



More information about the nylug-talk mailing list