Hello, i made this script : tc qdisc add dev eth0 handle ffff: ingress tc filter add dev eth0 parent ffff: protocol ip prio 1 u32 match ip src 138.96.20.0 police index 1 rate 20000kbit burst 20000kbit drop flowid :1 tc filter add dev eth0 parent ffff:1 protocol ip prio 1 u32 match ip src 138.96.20.23 police index 2 rate 15000kbit burst 15000kbit drop flowid :2 tc filter add dev eth0 parent ffff:1 protocol ip prio 1 u32 match ip src 138.96.20.10 police index 3 rate 10000kbit burst 10000kbit drop flowid :3 The main goal is to limit incoming traffic from 138.96.20.23 to 15000kbit and the incoming traffic from 138.96.20.10 to 10000kbit. But the total must not exceed 20000kbit. Does anyone have an idea ? Thanks. Olivier. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Hello, i made this script : tc qdisc add dev eth0 handle ffff: ingress tc filter add dev eth0 parent ffff: protocol ip prio 1 u32 match ip src 138.96.20.0 police index 1 rate 20000kbit burst 20000kbit drop flowid :1 tc filter add dev eth0 parent ffff:1 protocol ip prio 1 u32 match ip src 138.96.20.23 police index 2 rate 15000kbit burst 15000kbit drop flowid :2 tc filter add dev eth0 parent ffff:1 protocol ip prio 1 u32 match ip src 138.96.20.10 police index 3 rate 10000kbit burst 10000kbit drop flowid :3 The main goal is to limit incoming traffic from 138.96.20.23 to 15000kbit and the incoming traffic from 138.96.20.10 to 10000kbit. But the total must not exceed 20000kbit. Does anyone have an idea ? Thanks. Olivier. _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
<skip />> Hello, > > i made this script : > tc qdisc add dev eth0 handle ffff: ingress<skip />> The main goal is to limit incoming traffic from 138.96.20.23 to 15000kbit > and the incoming traffic from 138.96.20.10 to 10000kbit. But the total must > not exceed 20000kbit.<skip /> Does it work? Afair, such setup is possible only with htb/cbq, not with policing filters. But I can stumble. If so, consider to use imq (which can be unstable) or to shape outgoing traffic, if it is applicable (e.g., on a router). If you do not have imq, but use OpenVZ or Xen with network in routed mode, you can try to use htb to shape traffic to a VE. -- Peter V. Saveliev