Click to See Complete Forum and Search --> : Please Help Bandwidth Limiting


winterstide
02-27-2001, 05:48 AM
I have 2x Win2k computers connected to my Linux box, using IP masq to connect to the internet. Currently my Linux Box only has a 56K modem, which uses wvdial and set to ppp0.

I use Redhat 7.0 using 2.2.16-22 Kernel.

I would like to be able to set exactly how much bandwidth, to either IP addresses or hardware ethernet addresses, each gets. This is for uploading and downloading. Ie. I want one of my computers to have full access to the bandwidth avaible and the other to have a limit. How can I do this???? I believe shapecfg only works for outgoing traffic???

Also, i want to be able to set, exactly how much data a computer is allowed to download throught the ppp0 adapter. This does not count for the eth0 adapter. I would like to be able to set this, say 400Mb/day for when i get ADSL and the crummy broadband people in Oz put a limit on how much ur allowed to download. But I would like the other computer to again, have full access.

Hope You Can Help

Thanks

Luke

wojohowski
02-27-2001, 06:01 AM
just out of curiousity do you want to set the bandwidth for the internal network or for the external network? It seems kind of pointless for there to be any bandwidth limiting on the the dialup when the bandwidth is only about 5k coming from your modem.

Woj

winterstide
02-27-2001, 06:36 AM
I dont't see how that is pointless. Anyways, i want to get it configured and all before I get ADSL.

Anyways, when u have one computer downloading at 5.5K from napster, the other computer can't evenview webpages. So limit the mp3 download to 1 or 2 K sec, and be able to at least check ur email, on the other computer.

Stubbs
02-27-2001, 06:47 AM
What I would be able to like to do is not stop access at a certain point, but slowly throttle it as that limit is approached, then you don't actually lose connection, it just slows down.

I don't know how to do it, but I'm sure it's possible.

[ 27 February 2001: Message edited by: Stubbs ]

Fandelem
02-27-2001, 05:42 PM
hmm.. well, squid will limit bandwidth excellent with the delay_pools feature, but that's probably not what you're looking for.. although you might be able to hrmm..

did a search on freshmeat.. check these out:
http://freshmeat.net/projects/rshaper/

and
http://sourceforge.net/search/?type_of_search=soft&exact=1&words=limit+bandwidth

hope this helps,

~kyle

jumpedintothefire
02-27-2001, 09:49 PM
try:
http://www.ibiblio.org/pub/Linux/docs/HOWTO/Adv-Routing-HOWTO
http://www.sjc.com/LinuxSoft/rpms/RPMS/RPMS/iproute-2.2.4-2.i386.html

Sorry, :(
haven't played yet, so no pointers...