Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Gáspár Lajos" <swifty@freemail.hu>
To: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Cc: Jan Engelhardt <jengelh@medozas.de>,
	Pascal Hambourg <pascal.mail@plouf.fr.eu.org>,
	netfilter@vger.kernel.org, "Dennis J." <dennisml@conversis.de>,
	pablo@netfilter.org
Subject: Re: Synflood filtering and Conntrack
Date: Thu, 29 Jul 2010 19:14:15 +0200	[thread overview]
Message-ID: <4C51B6E7.4010502@freemail.hu> (raw)
In-Reply-To: <alpine.DEB.2.00.1007291723040.32027@blackhole.kfki.hu>

2010-07-29 17:50 keltezéssel, Jozsef Kadlecsik írta:
> I don't see why it looks soo complicated: of course, a ct entry is 
> created
> by conntrack whenever a new connection is detected. And of course the
> entry is destroyed if the packet, which triggered to create the new entry,
> is dropped by a rule. Why should the conntrack entry be kept, if the
> connection is not allowed by the rules?
>
>    
Correct me if I am wrong.

You can only destroy the entry (CONNECTION) if the PACKET which 
"created" the entry is DROPped.
But you can NOT destroy the entry (just wait for timeout) if:
- the DROPped packet is not the first (SYN),
- there is no LOCAL reply,
- packets are FORWARDed.

I think that 99% of the conntrack entries are kept this way until timeout.

It it is true then there is no "standard" real help against a SYN flood. 
(CHAOSTABLES?)


Swifty


  reply	other threads:[~2010-07-29 17:14 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
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 [this message]
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=4C51B6E7.4010502@freemail.hu \
    --to=swifty@freemail.hu \
    --cc=dennisml@conversis.de \
    --cc=jengelh@medozas.de \
    --cc=kadlec@blackhole.kfki.hu \
    --cc=netfilter@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=pascal.mail@plouf.fr.eu.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