All of lore.kernel.org
 help / color / mirror / Atom feed
From: netfilter@buglecreek.com
To: netfilter@vger.kernel.org
Subject: State Explanation
Date: Sun, 17 Jul 2011 18:01:39 -0600	[thread overview]
Message-ID: <1310947299.8819.2152814541@webmail.messagingengine.com> (raw)

In the course of troubleshooting a very simple iptables ruleset that is
inexplicably dropping packets (more on that later) I came across a
explanation in a Iptables Firewall book regarding the NEW state when
using "-m state --state NEW" in a rule.  It states "NEW is equivalent to
the initial TCP syn request, or to the first UDP packet".  I have also
seen in some resources that "-m state --state NEW" will allow any packet
through whether a syn bit is set or not.  

So if for some reason a packet that just has the ack bit set and the
state is not known (ESTABLISHED, RELATED) it will be allowed through due
to the -m state --state NEW? 

             reply	other threads:[~2011-07-18  0:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18  0:01 netfilter [this message]
2011-07-18  8:36 ` State Explanation 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=1310947299.8819.2152814541@webmail.messagingengine.com \
    --to=netfilter@buglecreek.com \
    --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 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.