[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Limiting bandwidth used



Kjell Rune Skaaraas wrote:
Hi

I'm sharing an ADSL connection with my landlord, and
need my Debian box (running etch) to cap the bandwidth
use (just its own use, it's not acting as a router).

Is there any way to do this that doesn't involve
setting up a massively complex traffic shaper, tons of
iptables rules etc etc.? I'm used to doing this with
netlimiter on Windows and the only solutions for linux
when I've searched for it I go "What the f...?" over.
All I want is to be able to say "Use max 1500kb/s down
and 150kb/s up on anything outside 10.0.0.*". I really
don't see how that can be so difficult.

Regards,
Kjell Rune Skaaraas



Hi

It can be done with iproute... iproute packages is in the main archive of Debian
The command is "tc"

But I'm not sure it's more easy than iptables !!!

Maybe, you can have a look at WonderShaper: http://lartc.org/wondershaper/

It's not the main goal of this script, but you can use it for what you want by change the "speed" values to your values on the start of the script.

Regards
Guillaume



--
Guillaume
E-mail: silencer_<at>_free-4ever_<dot>_net
Blog: http://guillaume.free-4ever.net
---
Sites: http://www.free-4ever.net
       http://wiki.free-4ever.net



Reply to: