Is it possible to throw all not matched traffic to selected
I have some filters.. like this:
$TC filter add dev $dev_isp protocol ip parent 3:0 pref 3 u32 match ip protocol 6 0xff match ip sport $prt 0xffff flowid 3:2
I throw only few types of packets to 3:2, all other traffic I want to put on 3:3, but this doesn't work(!):
$TC filter add dev $dev_isp protocol ip parent 3:0 pref 4 flowid 3:2
When type that command I have this:
Unknown filter "flowid", hence option "3:3" is unparsable
What should I do to put all other traffic (not matched by my filters) to 3:3?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Re: [LARTC] Is it possible to throw all not matched traffic to
Quoted 2 lines
What should I do to put all other traffic (not matched by my filters) to 3:3?
OK. I solved the problem.
I must use default here: tc qdisc add dev eth0 root handle 3:0 htb default 3
Is possible to do it using filters?
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Re: [LARTC] Is it possible to throw all not matched traffic
In reply to KonradQuoted 1 line · Konrad
Is possible to do it using filters?
I think, default class is the best solution. But you also can do it with a last "match all" filter after your other filter rules.
tc filter add ...... protocol all u32 match u32 0 0 classid 3:3
Cheers,
Andreas
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Re: [LARTC] Is it possible to throw all not matched traffic
In reply to KonradQuoted 9 lines · Konrad
Quoted 3 lines
What should I do to put all other traffic (not matched by my filters) to 3:3?
OK. I solved the problem.
I must use default here: tc qdisc add dev eth0 root handle 3:0 htb default 3
Is possible to do it using filters?
Certainly! You add a filter that directs what you want into the correct flow, then you match everything else with a second filter, directing all that to a different (what is now your default) flow. See the INGRESS portion of the Wonder Shaper if you don't know how to match everything. Use prio to determine the selection order of the filters if necessary. "If necessary" means that filters seldom need different prio values.
--
gypsy
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc