Linux Netfilter discussions
 help / color / mirror / Atom feed
From: "Darrell Dieringer" <netfilter@darrelldieringer.com>
To: netfilter@lists.netfilter.org
Subject: RE: rule check
Date: Thu, 16 Jan 2003 10:38:56 -0600	[thread overview]
Message-ID: <IMEDICLPAGAOCBLCCKLPKEJNELAA.netfilter@darrelldieringer.com> (raw)
In-Reply-To: <000d01c2bd74$2db248f0$1e01a8c0@win2k.com>

If these rules appeared in that order in the same set of rules, the
second rule wouldn't be hit because the first one is already accepting
all the NEW,ESTABLISHED,RELATED traffic regardless of protocol and
port.

So, as other listers have pointed out, the rules are not the same.  If
they appeared together though, since the first one is more general, it
will match the traffic the second rule was designed to match.


> -----Original Message-----
> From: netfilter-admin@lists.netfilter.org
> [mailto:netfilter-admin@lists.netfilter.org]On Behalf Of Mike
> Sent: Thursday, January 16, 2003 9:30 AM
> To: netfilter@lists.netfilter.org
> Subject: rule check
>
>
> Are these two rules essentially the same ?
>
> Thanks,
> Mike
>
> iptables -A FORWARD -i eth2 -o eth0 -m state --state
> NEW,ESTABLISHED,RELATED -j ACCEPT
>
> iptables -A FORWARD -i eth2 -o eth0 -p tcp --dport 2000:2050 -m
> state --state NEW,ESTABLISHED,RELATED -j ACCEPT
>
>
>



  parent reply	other threads:[~2003-01-16 16:38 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-16 15:30 rule check Mike
2003-01-16 15:50 ` Qui Le
2003-01-16 16:38 ` Darrell Dieringer [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-01-16 15:46 mailinglists

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=IMEDICLPAGAOCBLCCKLPKEJNELAA.netfilter@darrelldieringer.com \
    --to=netfilter@darrelldieringer.com \
    --cc=netfilter@lists.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