Google
  Web www.spinics.net

incoming traffic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Bugtraq]     [Fedora Legacy]     [GCC Help]     [Yosemite News]     [Yosemite Photos]     [IP Tables]     [Netfilter Devel]     [Fedora Users]

Powered by Linux