Re: [SLUG] *limiting* bandwidth?

2003-01-13 Thread David Fitch
On Mon, 2003-01-13 at 21:46, savanna wrote:
 What I'd like to do is limit each workstation connection speed to say modem
 speed, but not have that affect other users. And of course do it via open
 source, not using Cisco, etc.

a google search for linux traffic shaping turns up a few
links that look like what you want
(another maybe useful keyword is QoS).

Dave.

-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] *limiting* bandwidth?

2003-01-13 Thread Rev Simon Rumble
On Mon 13 Jan, savanna bloviated thus:
 I'm in an interesting situation - I actually want to slow down my network
 connection, as our users are sucking down too much stuff. Any ideas or
 pointers or tools to look for?

The response is good.  In particular, check out the Hierarchical Token
Bucket (HTB) queuing discipline (qdisc) which is easy to understand
and does a good job of it.  It's also in the latest stable kernel,
2.4.20.

-- 
Rev Simon Rumble [EMAIL PROTECTED]
www.rumble.net
Send email with subject send key pub for public key.

 They that can give up essential liberty to obtain a little
  temporary safety deserve neither liberty nor safety.
- Benjamin Franklin



msg29339/pgp0.pgp
Description: PGP signature


Re: [SLUG] *limiting* bandwidth?

2003-01-13 Thread rod
Hi Savanna
Very easy to do under linux.  Grab the latest version of cbq.init from 
ftp.equinox.gu.net/pub/linux/cbq/ and also a copy of the linux advanced routing 
howto from LDP so you understand what the script does. Read the script as it 
contains all setup doco (or did at v0.6.2)

Provides excellent control of per workstation BW on a LAN with a big internet pipe. 
 Started to use it when we had some filesharing apps cause us problems. Should 
see what a fast PC with bearshare installed (or whatever its called) can do to your 
internet feed!

The script also supports different rates ect due to time of day (but I havent played 
with that).

An example config for one of our workstations  is:-

DEVICE=eth1,10Mbit,1Mbit
RATE=96Kbit
WEIGHT=6Kbit
PRIO=5
RULE=,1.2.3.4

This limits the BW out of the router to IP 1.2.3.4 on the lan attached to eth1 from 
any source IP:Port to 96K total. 

You can also set limits based on source IP and src:port dest:port if you need to. 
An old P90 with ISA NICs was easily able to cope with 10 PC's.

Cheers
-Rod 


-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug



Re: [SLUG] *limiting* bandwidth?

2003-01-13 Thread Anand Kumria
On Mon, Jan 13, 2003 at 10:16:07PM +1100, savanna wrote:
 I'm in an interesting situation - I actually want to slow down my network
 connection, as our users are sucking down too much stuff. Any ideas or
 pointers or tools to look for?
 
 The situation is that I've got a Debian server connected to an ADSL
 connection, with a whole lot of workstations in a 'kiosk' situation - ie no
 logons. So whilst I could make my Squid server transparent, require passwords,
 and have some sort of quota system, this wouldn't be good as I don't want
 passwords.
 
 What I'd like to do is limit each workstation connection speed to say modem
 speed, but not have that affect other users. And of course do it via open
 source, not using Cisco, etc.
 
 Ideas, anyone?

www.lartc.org

Anand

-- 
 `` We are shaped by our thoughts, we become what we think.
 When the mind is pure, joy follows like a shadow that never
 leaves. '' -- Buddha, The Dhammapada
-- 
SLUG - Sydney Linux User's Group - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug