On 5/3/07, Andy Furniss <[EMAIL PROTECTED]> wrote:
Salatiel Filho wrote:
> How can i redirect all traffic that not come from port 80 to a flow ?
>
> i was thing about some like
>
> tc filter add dev imq1 parent 1: protocol ip prio 7 u32 match ip sport
> !80 ......
>
> But this not work.
>
> Another doubt, if i have two rules that intersects , for example ,
> one filter with u32 match ip src 10.10.10.10 flowid 1:10
> and other with u32 match sport 80 0xffff flowid 1:11 , which one will
> work in case of a packet to 10.10.10.10 with sport 80 ???
You need to use prio to order the rules - anything after a rule that
matches port 80 will be ! 80 - you cannot make a rule that negates
matches directly. If the structure of your htb etc is deep you can make
filters attach to parents other than root, but you need to filter the
traffic to those flowids first. You can match more than one thing with
one filter rule so you can match prio X src ip and 80 then follow with
prio (X+1) src ip.
Andy.
Well , i am having a few troubles making this work.
I have some like this in pseudo tc rulez :)
Root class
Class 1 parent ROOT prio 0 filter u32 match sport 80 dst 10.0.0.254
Class 2 paret ROOT prio 0 filter u32 match dport 22
Class 3 parent ROOT prio 7 filter u32 match dst 10.0.0.254
default
Shouldn't traffic from source port 80 and destination 10.0.0.254 go
through class 1 ?
I can not make a way to this work, traffic to 10.0.0.254 is always
falling in to class 3 :/
Am i missing something ?
--
[]'s
Salatiel
"O maior prazer do inteligente é bancar o idiota
diante de um idiota que banca o inteligente".
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc