preserving fwmarks through KLIPS
Hello,
I am trying to classify ipsec and non-ipsec traffic on the external interface of my box. I plan to use fwmarks in iptables, and then rely on those for queueing classification on the external interface.
My question is, if I mark a packet before it is encrypted by KLIPS in FreeS/WAN, when it is re-injected with a new IP header, will that fwmark be maintained?
Looking here:
http://iptables-tutorial.frozentux.net/iptables-tutorial.html#MARKTARGET
it is not clear. I'm going to do some testing but I was hoping that someone might have a definitive answer.
I am using kernel 2.4.21.
Thanks,
Mike
Signature · 4 lines
Michael P. Soulier <[email protected]>, 613-592-2122 x2522 6000/6010/60* Development, Mitel Corporation "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to Unix
Quoted 9 lines · Michael P. Soulier
Hello,
I am trying to classify ipsec and non-ipsec traffic on the external interface of my box. I plan to use fwmarks in iptables, and then rely on those for queueing classification on the external interface.
My question is, if I mark a packet before it is encrypted by KLIPS in FreeS/WAN, when it is re-injected with a new IP header, will that fwmark be maintained?
nothing can replace you actually testing this for yourself, but yes--in my experience--MARKs stay with a packet through its entire journey through the stack, regardless of what sort of processing is done to the packet. a MARK is simply tag associated with a packet, but not part of the packet itself.
-j
--
"I have been shot eight times this year, and as a result, I almost
missed work."
--The Simpsons
Quoted 5 lines · Jason Opperisano
nothing can replace you actually testing this for yourself, but yes--in my experience--MARKs stay with a packet through its entire journey through the stack, regardless of what sort of processing is done to the packet. a MARK is simply tag associated with a packet, but not part of the packet itself.
That being said, I just did some testing, and it would appear that they are indeed preserved.
Thanks,
Mike
Signature · 4 lines
Michael P. Soulier <[email protected]>, 613-592-2122 x2522 6000/6010/60* Development, Mitel Corporation "...the word HACK is used as a verb to indicate a massive amount of nerd-like effort." -Harley Hahn, A Student's Guide to Unix