Skip to contentSkip to conversation

TPROXY target returns NF_ACCEPT

DISCUSSION Philip Craig 2 participants 2 messages Jun 16, 2009 – Jun 17, 2009 netfilter

lore
Share & tools
lore
#0 lore raw

The TPROXY target returns NF_ACCEPT rather than XT_CONTINUE. Is there a reason for this, or is it left over from when there was a tproxy table? I can place the tproxy rules last if needed, but this behaviour was unexpected.

Also, does tproxy handle related ICMP packets too?

#1 lore raw

Hi,

Quoted 4 lines · Philip Craig

The TPROXY target returns NF_ACCEPT rather than XT_CONTINUE. Is there a reason for this, or is it left over from when there was a tproxy table? I can place the tproxy rules last if needed, but this behaviour was unexpected.

It has more to do with the REDIRECT-like functionality of the target. TPROXY 'redirection' is tricky, since it does not actually touch the skb but the packet ends up in a local socket with a different address/port.

Quoted 1 line

Also, does tproxy handle related ICMP packets too?

The 'socket' match matches for related ICMP, so if you use TPROXY in conjuction with that, then yes, it does handle related ICMP.

Signature · 5 lines
KOVACS Krisztian
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html