Re: Speed limit for shared Internet connection

From: Mihai Osian (zzz_at_zzz.com)
Date: 09/29/05


Date: Thu, 29 Sep 2005 13:14:57 +0200

Yvan@office wrote:

>I have ISDN connection to Internet that I share with few other offices
>at work. I have a line in /etc/rc.d/rc.local (Fedora Core 1):
>
>/home/iva/bin/internetPoIP-u
>
>and:
>...............................................
>more /home/iva/bin/internetPoIP-u
>#!/bin/bash
># echo " - Setting the default FORWARD policy to DROP"
>/sbin/iptables -P FORWARD DROP
>
># echo " - Enabling SNAT (IPMASQ) functionality on ippp0"
>/sbin/iptables -t nat -A POSTROUTING -o ippp0 -s 192.168.0.9/32 \
> -j MASQUERADE
>/sbin/iptables -t nat -A POSTROUTING -o ippp0 -s 192.168.0.6/32 \
> -j MASQUERADE
>/sbin/iptables -t nat -A POSTROUTING -o ippp0 -s 192.168.0.15/32 \
>-j MASQUERADE
>
># echo " - Setting the FORWARD policy to 'DROP' all incoming /
>unrelated traffic"
>/sbin/iptables -A INPUT -i ippp0 -m state --state NEW,INVALID -j DROP
>/sbin/iptables -A FORWARD -i ippp0 -m state --state NEW,INVALID -j DROP
>echo 1 > /proc/sys/net/ipv4/ip_forward
>...............................................
>
>
>
>But sometimes someone starts downloading big files, and all of the other
>users can not do anything.
>
>How can I put some speed limit to such users? Say 1/3 of a full speed,
>or 2000 bytes/sec or something?
>
>
>
>

  Search on Google for "traffic shaping", CBQ and/or HTB.

Mihai



Relevant Pages

  • Re: I note that no one is mentioning Jim Bates this morning!
    ... If I did break the speed limit quite so casually and routinely, I'd balance that particular bad fortune against the undoubted many times I would have gone through broken speed cameras, or ones that had run out of film.. ... Was it the milkman's fault that her son was killed? ... would not stop the woman from putting a great deal of blame on him. ... The law that equates downloading kp to creating kp is the problem. ...
    (uk.legal)
  • Re: Limit speed for shared Internet connection
    ... >Sometimes someone starts downloading big files, ... >How can I put some speed limit to such users? ... tc filter add dev $IDEV parent ffff: protocol ip prio 50 u32 match ip ...
    (comp.os.linux.networking)