2012-05-10 16:22:33 +0100, Stephane Chazelas:
[...]
> > > Shorewall clears the marks in mangle/FORWARD (FORWARD_CLEAR_MARK
> > > setting), and according to
> > > http://www.faqs.org/docs/iptables/traversingoftables.html#TABLE.FORWARDEDPACKETS
> > > this happens *before* filter/FORWARD, so my rule in "rules"
> > > shouldn't match. But still it does, otherwise it wouldn't work
> > > at all. Anybody has any insight on that? (I'm on Linux 2.6.32).
[...]

OK,

I see what's going on.

The packets that are TPROXYd never enter the mangle/FORWARD
chain, so the mark is never cleared which explains why it works.

I just added a 

-t mangle -I FORWARD -m mark --mark 1/1

rule and it doesn't get any hit.

-- 
Stephane


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to