fw_mark [was HTB: Filtering flat out not working :(]
By the way, you can attach fw_mark classifier WITHOUT specifying any marks and then it will try to directly map mark to class numbers. You can then specify class numbers directly in ip{chains,tables} ;) devik
Quoted 14 lines · Stef Coene
Quoted 5 lines · you
Absolutely, but you'll notice in my follow up post that nowhere does it tell you how to use 'tc' to throw the MARKed packets into a certain flow. The HOWTO tells you how to route marked packets, not how to shape them... ideas? do you happen to know the TC command sytax? All i need is one example....
I use the fw filter all the time. I have a lot of examples on docum.org. The idea is simple. You mark a packet and you use that mark to catch the packets with the fw filter.
The number of the mark is not important and has nothing to do with the class. The handle keyword is to say wich mark the filter has to use. So handle 10 will catch all packets with mark 10.
Quoted 12 lines
Stef
Signature · 6 lines
[email protected] More QOS info : http://www.docum.org/ Title : "Using Linux as bandwidth manager" _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 4 lines · Martin Devera
By the way, you can attach
fw_markclassifier WITHOUT specifying any marks and then it will try to directly map mark to class numbers. You can then specify class numbers directly in ip{chains,tables} ;) devik
True
Thx
Stef
Signature · 6 lines
[email protected] More QOS info : http://www.docum.org/ Title : "Using Linux as bandwidth manager" _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
Quoted 3 lines · Martin Devera
By the way, you can attach
fw_markclassifier WITHOUT specifying any marks and then it will try to directly map mark to class numbers. You can then specify class numbers directly in ip{chains,tables} ;)
I saw this discussed here on the list before and when I tried to find more details I came up dry -- do you happen to remember/know the mapping?
Signature · 6 lines
Michael T. Babcock CTO, FibreSpeed Ltd. (Hosting, Security, Consultation, Database, etc) http://www.fibrespeed.net/~mbabcock/ _______________________________________________ LARTC mailing list / [email protected] http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
I found it in sources. When fwmark has no subfilters then maps fwmark directly into classid.
So that 0x0002010 is classid 2:10
Quoted 7 lines · Michael T. Babcock
Quoted 3 lines · Martin Devera
By the way, you can attach
fw_markclassifier WITHOUT specifying any marks and then it will try to directly map mark to class numbers. You can then specify class numbers directly in ip{chains,tables} ;)I saw this discussed here on the list before and when I tried to find more details I came up dry -- do you happen to remember/know the mapping?
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/