[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4BB47EEA.4020809@trash.net>
Date: Thu, 01 Apr 2010 13:09:30 +0200
From: Patrick McHardy <kaber@...sh.net>
To: Jan Engelhardt <jengelh@...ozas.de>
CC: netfilter-devel@...r.kernel.org, netdev@...r.kernel.org
Subject: Re: [PATCH 5/5] netfilter: xt_TEE: have cloned packet travel through
Xtables too
Jan Engelhardt wrote:
> On Thursday 2010-04-01 12:37, Patrick McHardy wrote:
>
>> Jan Engelhardt wrote:
>>> Since Xtables is now reentrant/nestable, the cloned packet can also go
>>> through Xtables and be subject to rules itself.
>> That sounds dangerous if conntrack isn't used to prevent loops.
>
> Conntrack loops are prevented by using a dummy conntrack, just as
> NOTRACK does.
My question was about the case without conntrack.
>> Is that really useful? For filtering, you can simply apply the
>> rules before deciding to TEE the packet.
>
> I can think of a handful of applications:
> - CLASSIFY
Good point, you should probably reset a couple of skb members
after the skb_copy().
> - When the cloned packets gets XFRMed or tunneled, its status switches
> from "special" to "plain". Doing policy routing on them does not seem
> so far-fetched.
Fair enough, provided we can also handle loops when conntrack
isn't used.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists