Problems whit iproute

Linux Advanced Routing and Traffic Control

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

 



Hello all,

I have a problem with tc:
I run this script:

#!/bin/sh
banda=64Kbit

tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1:0 cbq bandwidth $banda avpkt 1000 cell 8
tc class add dev eth0 parent 1:0 classid 1:1 cbq bandwidth $banda rate
64kbit maxburst 20 avpkt 500
tc class add dev eth0 parent 1:1 classid 1:3 cbq bandwidth $banda rate
64kbit maxburst 20 avpkt 100
tc class add dev eth0 parent 1:1 classid 1:4 cbq bandwidth $banda rate
16kbit maxburst 20 avpkt 1500
tc qdisc add dev eth0 parent 1:3 handle 30: sfq
tc qdisc add dev eth0 parent 1:4 handle 40: sfq
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x10
0xff flowid 1:3
tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip tos 0x00
0xff flowid 1:4


the probelm is that this configuration seems only to be applied to loacally
generated traffic, but the packets received by my linux box that have to be
forwarded are not matched by any filter. Do you have any idea about wich
could be the problem?

Thanks

Mauro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
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