LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to cap bandwidth/speed? (http://www.linuxquestions.org/questions/linux-software-2/how-to-cap-bandwidth-speed-610862/)

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?

Thanks.

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 www.lartc.org.

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.

jlinkels

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 www.lartc.org doesn't seem to work. But Google tells me to try http://lartc.org

jlinkels 01-04-2008 11:56 AM

I think you are correct and it is lartc.org.

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.

jlinkels


All times are GMT -5. The time now is 08:31 AM.