From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: "Dennis J." <dennisml@conversis.de>,
netfilter@vger.kernel.org,
Mart Frauenlob <mart.frauenlob@chello.at>,
pablo@netfilter.org
Subject: Re: Synflood filtering and Conntrack
Date: Wed, 28 Jul 2010 16:27:27 +0200 [thread overview]
Message-ID: <4C503E4F.7070302@plouf.fr.eu.org> (raw)
In-Reply-To: <alpine.LSU.2.01.1007281608440.28383@obet.zrqbmnf.qr>
Jan Engelhardt a écrit :
> On Wednesday 2010-07-28 15:30, Pascal Hambourg wrote:
>>
>> Right, the DROP target has no direct effect on conntrack. When a
>> packet belonging to an already existing (confirmed) connection is
>> dropped, the conntrack entry is not destroyed. But IIUC when the
>> first packet that would create a new connection (and a new conntrack
>> entry) is dropped for any reason before it reaches the conntrack
>> confirm in the LOCAL_IN or POST_ROUTING
>> hooks (after INPUT or POSTROUTING chains), the conntrack
>> entry is destroyed, isn't it ?
> Think. -m conntrack --ctstate NEW would not work if the ct only
> sprung into existence once it is confirmed.
> The ct is created about before you enter the mangle-PREROUTING chain.
Did I wrote otherwise ?
I wrote that the new conntrack entry created by a packet is destroyed if
if that packet does not reach contrack confirm, so I believe it implies
that it was created first. You can't destroy something that does not
exist, right ?
1. Packet is seen by conntrack in PRE_ROUTING/LOCAL_OUT -> create
conntrack entry.
2. Packet is seen again by conntrack in LOCAL_IN/POST_ROUTING -> confirm
conntrack entry, otherwise delete it.
Am I correct ?
next prev parent reply other threads:[~2010-07-28 14:27 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-27 22:29 Synflood filtering and Conntrack Dennis J.
2010-07-28 5:24 ` Mart Frauenlob
2010-07-28 6:11 ` Jan Engelhardt
2010-07-28 13:30 ` Pascal Hambourg
2010-07-28 14:10 ` Jan Engelhardt
2010-07-28 14:27 ` Pascal Hambourg [this message]
2010-07-29 11:11 ` Mart Frauenlob
2010-07-29 11:21 ` Jan Engelhardt
2010-07-29 11:31 ` Mart Frauenlob
2010-07-29 12:34 ` Pascal Hambourg
2010-07-29 12:49 ` Jan Engelhardt
2010-07-29 13:16 ` Pascal Hambourg
2010-07-29 15:50 ` Jozsef Kadlecsik
2010-07-29 17:14 ` Gáspár Lajos
2010-07-29 17:52 ` Jozsef Kadlecsik
2010-07-29 22:18 ` Mart Frauenlob
2010-07-29 23:19 ` Pascal Hambourg
2010-07-30 10:32 ` Jozsef Kadlecsik
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=4C503E4F.7070302@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=dennisml@conversis.de \
--cc=jengelh@medozas.de \
--cc=mart.frauenlob@chello.at \
--cc=netfilter@vger.kernel.org \
--cc=pablo@netfilter.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox