limiting bandwidth to a IP using linux

limiting bandwidth to a IP using linux

Post by Kevin Ye » Tue, 21 Dec 1999 04:00:00

We're looking for a cheap way to limit bandwidth consumption at our
ISP.  Specifically, we want to limit the incoming bandwidth to a certain

amount for a specific IP.  We've been using rshaper, but the linux box
crashes after a half-day.  Upgrading from our Cisco 2520 is too
expensive, so that's not an option.  We're looking for something that
costs nothing or next to nothing.  The linux router project seems to
offer this capability, but the documentation on it is minimal.

Any suggestions on how to limit bandwidth for free with linux?

Kevin Yen
TranSend Internet Co.


1. Limiting outgoing bandwidth per machine, using Linux (2.2.19) on ADSL


Ok, to start, some facts:

- I have a local network within my home, with IP addresses in the subnet, assigned via DHCP
- I'm using a linux 2.2.19 machine as a router/server, that does IP
masquerading to allow all the machines within my network to share the
one internet connection I have. The local network interface is eth0,
while the internet connection is ppp0 (or eth1).
 - I have an ADSL connection with 640 kilobits/sec downstream (80
kilobytes/sec), 90 kilobits/sec upstream (11.25 kilobytes/sec).
My service provider (Verizon Online) is rather facist with their
bandwidth allocation -- when anymore than 50% of my upstream bandwidth
is utilized, it cuts into my downstream. So say I'm downloading
something at 70 kilobytes/sec, and another computer on my network is
sending some data upstream, at 8 kilobytes/sec, my download speed will
drop to about 10kilobytes/sec, and it will stay that way until the
upstream bandwidth is no longer used.
 - I have iproute2 installed with support built into the kernel

I want to setup some kind of traffic shaping policy so each computer
in the network can only send a certain kilobytes/sec upstream, via the
adsl interface (ppp0).

I have read the linux advanced routing howto, and that only left me
really confused. I fiddled around with the tc command but
unfortunately I wasn't able to make any progress.

I would really appreciate any help anyone could give me.

Thanks in advance,

Paul Lesiak

2. cracker most of less answer

3. Bandwidth limiting using Linux as a router...

4. Linux Databases

5. Limit bandwidth by IP for a LAN behind a linux firewall

6. Problem with Linux 2.4.7 and builtin eepro on Intel's EEA2 motherboard.

7. Limit bandwidth using QoS?

8. Something like Wabi

9. IP Bandwidth Limiting per user

10. Limiting Bandwidth/Connections on an IP Basis?

11. Limiting internet bandwidth on one TCP/IP Subnet

12. Bandwidth Limiting w/ IP Masq & User PPP

13. using squid to limit bandwidth based on domain