Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: Dynamically adding rules - are connection tracking states maintained?
Date: Wed, 30 Apr 2008 01:37:02 +0200	[thread overview]
Message-ID: <4817B11E.9010803@plouf.fr.eu.org> (raw)
In-Reply-To: <832773.11379.qm@web57302.mail.re1.yahoo.com>

noa levy a écrit :
> I still don't understand one thing though: Let's say I delete a rule
> that allows SSH traffic. There are probably many entries in the
> conntrack table for SSH sessions. Will these sessions continue to be
> allowed in, even though I have just deleted the rule that allowed SSH
> (and my default policy is DROP)? 

You are asking the wrong question. Iptables is a packet filter, it does 
not filter "sessions" (or connections). As already said, the conntrack 
table is not affected by rule deletion/insertion. So whether packets 
belonging to existing connections are allowed or not depends on the new 
ruleset. If the new ruleset says to ACCEPT packets in the ESTABLISHED 
state, then established connections are still allowed.

  reply	other threads:[~2008-04-29 23:37 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-28 22:27 Dynamically adding rules - are connection tracking states maintained? noa levy
2008-04-29 23:37 ` Pascal Hambourg [this message]
2008-05-01 20:22   ` noa levy
2008-05-01 22:44     ` Josh Cepek
2008-05-01 22:56       ` Petr Pisar
2008-05-02  1:10       ` Pablo Neira Ayuso
  -- strict thread matches above, loose matches on Subject: below --
2008-04-24 16:12 noa levy
2008-04-24 19:24 ` Pascal Hambourg
2008-04-25 17:39   ` Jan Engelhardt

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=4817B11E.9010803@plouf.fr.eu.org \
    --to=pascal.mail@plouf.fr.eu.org \
    --cc=netfilter@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox