Hello, I want to limit the upload speed for the eth0 Interface for an specific IP. I used the following script, but its only limits the DOWNLOAD speed.But i want to limit both! DEV=''eth0'' tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 768kbit tc class add dev $DEV parent 1: classid 1:1 cbq rate 100kbit allot 1500 prio 5 bounded isolated tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.2 flowid 1:1 Greetz
rubens@etica.net
2004-Mar-23 12:58 UTC
Re: How to limit the Upload speed for an specific IP?
If traffic is outbound to another interface, limit the traffic on that interface. If traffic is destined to local, you will need either ingress policing or IMQ(www.linuximq.net). Rubens On Mon, 22 Mar 2004, Morten Kramer wrote:> Hello, > > I want to limit the upload speed for the eth0 Interface for an specific IP. > > I used the following script, but its only limits the DOWNLOAD speed.But i want to limit both! > > DEV=''eth0'' > tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 768kbit > tc class add dev $DEV parent 1: classid 1:1 cbq rate 100kbit allot 1500 prio 5 bounded isolated > tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.2 flowid 1:1 > > > Greetz > > >_______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Message: 1 This is how I am marking and limiting both download and upload speeds for IP ranges. Maybe you can get some ideas from this: http://www.geocities.com/jame_sj/ Hello, I want to limit the upload speed for the eth0 Interface for an specific IP. I used the following script, but its only limits the DOWNLOAD speed.But i want to limit both! DEV=3D''eth0'' tc qdisc add dev $DEV root handle 1: cbq avpkt 1000 bandwidth 768kbit tc class add dev $DEV parent 1: classid 1:1 cbq rate 100kbit allot 1500 prio 5 bounded isolated tc filter add dev $DEV parent 1: protocol ip prio 16 u32 match ip dst 192.168.0.2 flowid 1:1 Greetz _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/