u32: how to say "all except z.x.y"?
Hello lartc,
Q1:
If I want select subhet, I wrote
...u32 match ip dst a.d.r.es/net police ...
How I can say "all except z.x.y" ?
Both src/dest addr/port - I foundn't this info in HOWTO :(((
Q2:
Why I can't (or not allowed) to create more then one class into !ingress! queue? I know, it's incoming trafic? but why? it's look simply: (yes, i may be wrong:)
If first incomng packet owerlimit own filtered class - then drop, else pass...
Why it's hardly then outgoing (drop only!!)? or, if it's possible - give a sample, please.
Thanks!
Signature · 6 lines
Best regards, Ray-Nger mailto:[email protected] _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 7 lines · ray-nger
Hello lartc,
Q1:If I want select subhet, I wrote
...u32 match ip dst a.d.r.es/net police ...
How I can say "all except z.x.y" ?
Both src/dest addr/port - I foundn't this info in HOWTO :(((
Use 2 filters :
1. all z.x.y to a class
2. all to an other class
so the second filter matches all except x.y.z
Quoted 9 lines
Q2:
Why I can't (or not allowed) to create more then one class into !ingress! queue? I know, it's incoming trafic? but why? it's look simply: (yes, i may be wrong:)
If first incomng packet owerlimit own filtered class - then drop, else pass...Why it's hardly then outgoing (drop only!!)? or, if it's possible - give a sample, please.
It's not possible. The ingress qdisc is not a real qdisc. All egress qdiscs like htb/cbq/sfq are changing the queue of packets that leaves a nic. But for incoming there is no queue that you can change.
So you can add a ingress qdisc and you can use filters+policers to manage incoming traffic, but it will not so powerfull as you can with outgoing packets. You can't delay a packet with the ingress qdisc.
Stef
Signature · 8 lines
[email protected] "Using Linux as bandwidth manager" http://www.docum.org/ #lartc @ irc.oftc.net _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/