Filter problem

Linux Advanced Routing and Traffic Control

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

 



Hi !
I want to share my bandwidth between 10 computers. I want to redirect
computer A(192.168.1.4) to htb class 1:2 and the others to htb class 1:3. But the
last tc filter doesn't work :
Error message : "Unknown filter "flowid", hence option "1:3" is unparsable. "


I know the option "default" for htb but I don't want to use it for some reasons.
I also tried "tc filter add dev imq0 protocol ip parent 1:1 prio 2 u32 flowid 1:3" but I got this error : "RTNETLINK answers: Invalid argument"


Any ideas?

My Script with imq + htb
-----------------------------------------------------------

ip link set imq0 up
iptables -t mangle -A PREROUTING -j IMQ --todev 0

tc qdisc add dev imq0 handle 1: root htb
tc class add dev imq0 parent 1: classid 1:1 htb rate 512kbit
tc class add dev imq0 parent 1:1 classid 1:2 htb rate 256kbit ceil 512kbit
tc class add dev imq0 parent 1:1 classid 1:3 htb rate 256kbit ceil 512kbit

tc filter add dev imq0 protocol ip parent 1:1 prio 1 u32 match ip dst
192.168.1.4/32 flowid 1:2
tc filter add dev imq0 protocol ip parent 1:1 prio 2 flowid 1:3

_________________________________________________________________
MSN Messenger http://g.msn.fr/FR1001/866 : dialoguez en direct et gratuitement avec vos amis !


_______________________________________________
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