Skip to contentSkip to conversation

fw_mark [was HTB: Filtering flat out not working :(]

LARTC Martin Devera 3 participants 4 messages Mar 1, 2002

lore
Share & tools
lore
#0 lore raw

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/

#1 lore raw
Quoted 4 lines · Martin Devera

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

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/
#2 lore raw
In reply to Martin Devera
Quoted 3 lines · Martin Devera

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} ;)

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/
#3 lore raw
In reply to Martin Devera

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_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} ;)

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/