[LARTC] Policing IPv6 traffic
Hasso Tepper
hasso@linux.ee
Tue, 18 May 2004 14:10:24 +0300
Simple police filter below works for IPv4 traffic, but not for IPv6
traffic. Tested with 2.4.26 and 2.6.6 kernel. Am I doing something
wrong or is it bug? Same filter logic works with imq+htb for both
IPv4 and IPv6 traffic.
iptables -A PREROUTING -i eth1.101 -t mangle -j MARK --set-mark 0x101
ip6tables -A PREROUTING -i eth1.101 -t mangle -j MARK --set-mark 0x101
tc qdisc add dev eth1.101 handle ffff: ingress
tc filter add dev eth1.101 parent ffff: protocol all prio 50 handle \
0x101 fw police rate 1024kbit burst 60k drop flowid :101
--
Hasso Tepper