You are not logged in.

#1 2009-05-26 21:57:48

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

The easiest way to limit the overall bandwidth

I want to limit the overall bandwidth of some machines in my lan .

Example :
Machine 1 : 10KB/s dl / 3KB/s do
Machine 2 : 15KB/s dl / 5KB/s do

All the machines run Arch and I have full access on them .


English is not my native language .

Offline

#2 2009-05-26 23:13:33

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,222
Website

Re: The easiest way to limit the overall bandwidth

Do you want to do this at your gateway/firewall, or on each machine individually?

Offline

#3 2009-05-26 23:36:56

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: The easiest way to limit the overall bandwidth

iproute2 can limit bandwith, not for the faint of heart though:
http://www.linuxfoundation.org/en/Net:Iproute2

Alternatively you could set-up a Squid proxy on the machines and use that to limit data throughput.

Last edited by stefanwilkens (2009-05-26 23:37:49)


Arch i686 on Phenom X4 | GTX760

Offline

#4 2009-05-27 00:46:38

Nezmer
Member
Registered: 2008-10-24
Posts: 559
Website

Re: The easiest way to limit the overall bandwidth

Thanks for the responses.

@fukawi2
I'd rather do it on each machine individually .

@stefanwilkens
I had a look at Squid . It seemd :
* hard to setup .
* Not the right tool for the task .
* Limited to http bandwidth .

I'll have a look at iproute2 tomorrow .


English is not my native language .

Offline

#5 2009-05-27 07:09:27

ckristi
Member
From: Bucharest, Romania
Registered: 2006-11-21
Posts: 225

Re: The easiest way to limit the overall bandwidth

Well, if squid seemed hard to setup, prepare yourself for the iproute2/tc setups. I use an old "automated" script, called cbq.init. I think I have to patch it a little for it to work on Arch (because of a wrong find option order somewhere in the script. I think I found the workaround with my Google friend. smile
HTBTools  is another software that implements the iproute2/tc solution, but in the latest distros I've encountered lots of problems setting it up and running. It is also currently unmaintained and unsupported.


In love I believe and in Linux I trust

Offline

Board footer

Powered by FluxBB