Re: problems with u32 fiter

Linux Advanced Routing and Traffic Control

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

 



listas@xxxxxxxxxxxxxxxxxxxxx wrote:
hello to all
i'm trying to set a filter but doesn't want to work.
i've set ut the qdiscs and the classes like this :

tc qdisc add dev ppp0 root handle 1: htb default 20
tc class add dev ppp0 parent 1: classid 1:1 htb rate 120kbit
tc class add dev ppp0 parent 1:1 classid 1:20 htb rate 30kbit ceil 120kbit
tc class add dev ppp0 parent 1:1 classid 1:21 htb rate 30kbit ceil 120kbit
tc class add dev ppp0 parent 1:1 classid 1:22 htb rate 30kbit ceil 120kbit
tc class add dev ppp0 parent 1:1 classid 1:23 htb rate 30kbit ceil 120kbit
tc qdisc add dev ppp0 parent 1:20 handle 20: prio
tc qdisc add dev ppp0 parent 1:21 handle 21: prio
tc qdisc add dev ppp0 parent 1:22 handle 22: prio
tc qdisc add dev ppp0 parent 1:23 handle 23: prio

but when i try to set up the filters :

tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.0.2 flowid 1:23
tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.2.2 flowid 1:22
tc filter add dev ppp0 parent 1:0 prio 1 u32 match ip src 192.168.0.1 flowid 1:21

you need protocol ip before u32 eg.

tc filter add dev ppp0 parent 1:0 protocol ip prio 1 u32 match ip src 192.168.0.2 flowid 1:23

Andy.

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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