1832306 Members
1930 Online
110041 Solutions
New Discussion

Limiting bandwidth

 

Limiting bandwidth

hi

I'm using RH 8.0 with Squid+Masq~ing. I want to rectrict bandwidth to my internet users on my LAN. Is that possible to limit bandwidth per user basis?

I need ur suggestions

thanx in advance
1 GOD 1 LIFE
5 REPLIES 5
Jerome Henry
Honored Contributor

Re: Limiting bandwidth

Wow, this is not an easy one !
Muhammad, the only solution I see is to use Iptables to filter traffic (I think I remember you asked something about this).
You would use the limit option to set up an hysteresis based upon user IP.
Look at
http://www.netfilter.org/documentation/HOWTO/packet-filtering-HOWTO-7.html
for general puspose about Iptables;
Now the meat :
iptables -A FORWARD -d 192.168.0.126 -m limit --limit 5/s -j ACCEPT
With this example, you allow only 5 packets per second to the destination user 192.168.0.126.
If you want more specific examples, let us know. You can also define which port (mail ? ftp ?) you want to filter, from which sources and so on.
hth
J
You can lean only on what resists you...
Francisco J. Soler
Honored Contributor

Re: Limiting bandwidth

Hi,
another place for documentation could be:

http://www.linuxsecurity.com/resource_files/firewalls/Bandwidth-Limiting-HOWTO/

it is a bit old, but you can start with that.

See too the squid documentation: http://squid-docs.sourceforge.net/latest/book-full.html#AEN2036

Frank.

Linux?. Yes, of course.
Vitaly Karasik_1
Honored Contributor

Re: Limiting bandwidth

http://www.bandwidtharbitrator.com/ (Linux Bandwidth Arbitrator) may help you.

Vitaly
Avinoam
Frequent Advisor

Re: Limiting bandwidth

hello

the squid bandwitdh control :
http://www.tldp.org/HOWTO/Bandwidth-Limiting-HOWTO/
Sababa
Sergejs Svitnevs
Honored Contributor

Re: Limiting bandwidth

Have a look at /usr/src/linux/Documentation/networking/shaper.txt.
This lets you limit outgoing bandwidth from an interface. To limit incoming bandwith, try "rshaper".

Regards,
Sergejs