u32 filter question

Linux Advanced Routing and Traffic Control

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

 



Hi guys I have a config as follows for one of my networks. I want to give the xxx.xxx.xxx.xxx/xx network 64kbit for everything from the internet but 8000kbit from our internal servers on yyy.yyy.yyy.yyy/yy network. It does not work. I only want to use u32 filters. I think what's happening is the first flowid of 1:21 is catching them and not getting to the 1:40 flowid. Is this right? The box has to be between the x network and the y network.


tc qdisc del dev eth1 root handle 1: htb default 999 
tc qdisc add dev eth1 root handle 1: htb default 999 
tc class add dev eth1 parent 1: classid 1:1 htb rate 10000kbit 
tc class add dev eth1 parent 1:1 classid 1:999 htb rate 1000kbit ceil 10000kbit 
tc qdisc add dev eth1 parent 1:999 handle 1999: sfq perturb 10 
tc class add dev eth1 parent 1:1 classid 1:2 htb rate 10000kbit quantum 1514 
tc class add dev eth1 parent 1:2 classid 1:21 htb rate 64kbit ceil 64kbit quantum 1514 
tc class add dev eth1 parent 1:2 classid 1:40 htb rate 8000kbit ceil 8000kbit quantum 757000 
tc qdisc add dev eth1 parent 1:21 handle 2100: sfq perturb 10 
tc qdisc add dev eth1 parent 1:40 handle 4000: sfq perturb 10 
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip dst xxx.xxx.xxx.xxx.xx flowid 1:21 
tc filter add dev eth1 protocol ip parent 1:0 prio 1 u32 match ip src yyy.yyy.yyy.yyy/yy match ip dst xxx.xxx.xxx.xxx/xx flowid 1:40 


Regards Allan Gee
Equation
021 4181777
www.equation.co.za
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿË™¨¥Šx%ŠË,SùšŠYšŸ÷lõ¯ç–m§ÿÿ™¨¥™©ÿvÏZþy™¨¥™©ÿ–+-ŠwèþV«µÁÎY3ÿ†Ûiÿÿåj»\þŠà


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