All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Netfilter Development Mailinglist <netfilter-devel@vger.kernel.org>
Subject: Re: RFC: netfilter: xtables: add CT target
Date: Wed, 20 Jan 2010 10:52:59 +0100	[thread overview]
Message-ID: <4B56D27B.6070505@trash.net> (raw)
In-Reply-To: <alpine.DEB.2.00.1001201039071.8728@blackhole.kfki.hu>

Jozsef Kadlecsik wrote:
> On Wed, 20 Jan 2010, Patrick McHardy wrote:
> 
>> Jozsef Kadlecsik wrote:
>>> On Tue, 19 Jan 2010, Patrick McHardy wrote:
>>>
>>>> Adding an event mask to the ecache extension also looks unproblematic.
>>>> You could then use a rule like this:
>>>>
>>>> iptables -t raw .. -j CT --ctevents new,related,protoinfo,helper
>>>>
>>>> or something like that. Are the existing event types fine grained
>>>> enough for this?
>>> The possible events were cut back strongly and now the conntrack state 
>>> changes ASSURED and SEEN_REPLY cannot be distinguished. In my opinion 
>>> either SEEN_REPLY should not trigger an event at all or IPCT_ASSURED 
>>> should be put back.
>> I think it makes sense to generate an event for SEEN_REPLY since
>> its a synchronizable event (ctnetlink can also set the SEEN_REPLY
>> bit). I'm not opposed to add back IPCT_ASSURED, but I'm wondering,
>> in what case would userspace be interested in only one of both
>> updates?
> 
> I have only one case, but I think that's worth it: "sparse" conntrack 
> replication. Start replicating the conntrack entry after it reached the 
> ASSURED state and that way it's SYN-flood resistant. (Of course conntrack 
> could filter out the NEW/SEEN_REPLY state changes and wait for ASSURED, 
> but then the events are just sent unnecessarily.)

Sounds reasonable :) I'll add back the IPCT_ASSURED bit and will
post the entire series for review.

      reply	other threads:[~2010-01-20  9:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-19  9:05 RFC: netfilter: xtables: add CT target Patrick McHardy
2010-01-19  9:55 ` Jan Engelhardt
2010-01-19 10:19   ` Patrick McHardy
2010-01-19 10:27 ` Jozsef Kadlecsik
2010-01-19 10:40   ` Patrick McHardy
2010-01-19 12:06     ` Patrick McHardy
2010-01-19 16:03       ` Patrick McHardy
2010-01-20  9:19     ` Jozsef Kadlecsik
2010-01-20  9:37       ` Patrick McHardy
2010-01-20  9:50         ` Jozsef Kadlecsik
2010-01-20  9:52           ` Patrick McHardy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B56D27B.6070505@trash.net \
    --to=kaber@trash.net \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.