-   Linux - Software (
-   -   How to cap bandwidth/speed? (

yitzle 01-03-2008 11:29 AM

How to cap bandwidth/speed?
Is there some way to set a max bandwidth and/or traffic speed on a Linux (Debain) system?


matthewg42 01-03-2008 11:37 AM

If it's web traffic you're interested in limiting you can use squid.

jlinkels 01-03-2008 07:12 PM

Have a look at

Search for 'traffic shaping'. You most likely want a HTB type queing. Once you read the chapters about traffic shaping, google for examples. It is not difficult, although it might look complicated at first sight, hence the advice to search for examples.


yitzle 01-04-2008 10:57 AM

Thanks for the replies. I'll look into both.
Just to clarify, I'm looking to limit all traffic through the ethernet card/dev in either direction to a set limit. Nothing more.

PS doesn't seem to work. But Google tells me to try

jlinkels 01-04-2008 11:56 AM

I think you are correct and it is

Traffic shaping in BOTH directions is difficult, as a matter of fact you can only shape what you send out, because only that is what is controlled by you. That is called egress traffic.

There is a limited functionality the shape incoming traffic (ingress). That is more difficult because you cannot control wht someone else already sent to you.

If you want to receive traffic, and then shape that traffic into your local network, that is possible using an Intermediate Que Device. (IMQ). The IMQ used to require a kernel patch (pre- 2.6.n), I am not sure what the current status is.


All times are GMT -5. The time now is 05:06 PM.