making QoS for FTP traffic using tc HTB

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

 



Hi list,
I've some problem with making Qos.
All my pass through a linux box which is in Bridge mode.
I'd to implement a QoS to allocate 25Kbit of bandwith to the FTP
traffic. So I've made these commands:
--------------------------------------------------------------
tc qdisc add dev  eth1  root handle 1: htb default 1 tc  class add dev
eth1  parent 1: classid  1:1  htb rate 50kbit ceil 50kbit tc qdisc add
dev eth1  parent  1:1  handle 10:  sfq perturb 10

tc qdisc add dev  eth2  root handle 1: htb default 1

tc  class add dev  eth2  parent 1: classid  1:1 htb rate 50kbit ceil
50kbit tc qdisc add dev  eth2  parent  1:1  handle 10: sfq perturb 10

tc  class add dev  eth1  parent 1:0 classid  1:1007  htb rate 512kbit
ceil 512kbit

tc  class add dev  eth2  parent 1:0 classid  1:1007  htb rate 512kbit
ceil 512kbit

tc  class add dev  eth1  parent 1:1007 classid  1:8170  htb rate
25kbit ceil 25kbit

tc qdisc add dev  eth1  parent  1:8170  handle 8170:  sfq perturb 10
tc  class add dev  eth2  parent 1:1007 classid  1:8170  htb rate
25kbit ceil 25kbit

tc qdisc add dev  eth2  parent  1:8170  handle 8170: sfq perturb 10

tc filter add dev  eth1  protocol ip parent 1:  prio 1 u32   match ip  src
192.168.2.88/32  match ip dport  20  0xffff flowid  1:8170
tc filter add dev  eth1  protocol ip parent 1:  prio 1 u32   match ip  dst
192.168.2.88/32    0xff match ip dport  21  0xffff flowid  1:8170
--------------------------------------------------------------------
The filter tc filter add dev  eth1.....
Is never match for the FTP downstream.
Can someone help me troubleshoot.
Regards.
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux