* [LARTC] Is it possible to throw all not matched traffic to selected
@ 2005-06-12 21:16 Konrad
2005-06-12 22:01 ` [LARTC] Is it possible to throw all not matched traffic to Konrad
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Konrad @ 2005-06-12 21:16 UTC (permalink / raw)
To: lartc
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
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [LARTC] Is it possible to throw all not matched traffic to 2005-06-12 21:16 [LARTC] Is it possible to throw all not matched traffic to selected Konrad @ 2005-06-12 22:01 ` Konrad 2005-06-13 4:13 ` [LARTC] Is it possible to throw all not matched traffic Andreas Unterkircher 2005-06-13 5:43 ` gypsy 2 siblings, 0 replies; 4+ messages in thread From: Konrad @ 2005-06-12 22:01 UTC (permalink / raw) To: lartc > 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 LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Is it possible to throw all not matched traffic 2005-06-12 21:16 [LARTC] Is it possible to throw all not matched traffic to selected Konrad 2005-06-12 22:01 ` [LARTC] Is it possible to throw all not matched traffic to Konrad @ 2005-06-13 4:13 ` Andreas Unterkircher 2005-06-13 5:43 ` gypsy 2 siblings, 0 replies; 4+ messages in thread From: Andreas Unterkircher @ 2005-06-13 4:13 UTC (permalink / raw) To: lartc Konrad wrote: > 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 LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LARTC] Is it possible to throw all not matched traffic 2005-06-12 21:16 [LARTC] Is it possible to throw all not matched traffic to selected Konrad 2005-06-12 22:01 ` [LARTC] Is it possible to throw all not matched traffic to Konrad 2005-06-13 4:13 ` [LARTC] Is it possible to throw all not matched traffic Andreas Unterkircher @ 2005-06-13 5:43 ` gypsy 2 siblings, 0 replies; 4+ messages in thread From: gypsy @ 2005-06-13 5:43 UTC (permalink / raw) To: lartc Konrad wrote: > > > 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 LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-13 5:43 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2005-06-12 21:16 [LARTC] Is it possible to throw all not matched traffic to selected Konrad 2005-06-12 22:01 ` [LARTC] Is it possible to throw all not matched traffic to Konrad 2005-06-13 4:13 ` [LARTC] Is it possible to throw all not matched traffic Andreas Unterkircher 2005-06-13 5:43 ` gypsy
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.