A filtering problem

Linux Advanced Routing and Traffic Control

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

 



Hi,

I have the following problem.

I have followed iproute2 manual, and try to fillter incoming traffic by using u32. But it seems the filtering is not working properly, all the packets are still going default class.

# tc qdisc add dev eth0 root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8

# tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth 100Mbit  rate 5Mbit prio 3 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded

# tc class add dev eth0 parent 1:0 classid 1:2 cbq bandwidth 100Mbit  rate 3Mbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded

# tc qdisc add dev eth0 parent 1:1 tbf rate 1Mbit buffer 10Kb/8 limit 15Kb mtu 1500

# tc qdisc add dev eth0 parent 1:1 tbf rate 1Mbit buffer 10Kb/8 limit 15Kb mtu 1500

# tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.20.21.14/32 flowid 1:1

# tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip src 192.20.21.13/32 flowid 1:2

Both class 1 & 2 (1:1, 1:2) are not getting any traffic

Is there any thing am I missing.

Thanks in advance

 

 

 



Do You Yahoo!?
Yahoo! Health - Feel better, live better

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux