From: netfilter@tommi.org
To: Cedric Blancher <blancher@cartel-securite.fr>
Cc: netfilter@lists.netfilter.org
Subject: Re: ICMP and state/conntrack
Date: Fri, 28 Feb 2003 12:23:51 +0000 [thread overview]
Message-ID: <20030228122351.GB31779@ok.is> (raw)
In-Reply-To: <1046431034.14100.17.camel@elendil.intranet.cartel-securite.net>
Great and thanks for your swift replies.
The problem was actually a routing problem.
- Tomas
On Fri, Feb 28, 2003 at 12:17:14PM +0100, Cedric Blancher wrote:
>
> Le ven 28/02/2003 à 11:37, netfilter@tommi.org a écrit :
> > I'm wondering if state doesn't apply to ICMP packets.
>
> It applies.
>
> > iptables -A FORWARD -p icmp -m state -d 1.2.3.4 --state NEW -j ACCEPT
> > iptables -A FORWARD -m state --state NEW,INVALID -j REJECT
> > if I ping 1.2.3.4 the echo-reply is blocked from 1.2.3.4. Is this normal, I
> > thought that the echo-reply should be marked RELATED and therefore not
> > blocked?
>
> Nope.
> In fact, you can separate ICMP messages in two categories :
>
> . ICMP errors
> . standelone ICMP
>
> ICMP errors are related to an existing IP flow. As such, conntrack
> engine flags them as RELATED.
>
> Standelone ICMP (ping, netmask, timestamp and info, cf.
> ip_conntrack_proto_icmp.c) are not related to IP flow, and are flagged
> using NEW/ESTABLISHED states.
> If you ping someone, echo-request is NEW, echo-reply is ESTABLISHED.
>
> --
> Cédric Blancher <blancher@cartel-securite.fr>
> IT systems and networks security expert - Cartel Sécurité
> Phone : +33 (0)1 44 06 97 87 - Fax: +33 (0)1 44 06 97 99
> PGP KeyID:157E98EE FingerPrint:FA62226DA9E72FA8AECAA240008B480E157E98EE
>
>
next prev parent reply other threads:[~2003-02-28 12:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-28 10:37 ICMP and state/conntrack netfilter
2003-02-28 11:17 ` Cedric Blancher
2003-02-28 12:23 ` netfilter [this message]
2003-02-28 11:48 ` surf3r
2003-02-28 11:59 ` 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=20030228122351.GB31779@ok.is \
--to=netfilter@tommi.org \
--cc=blancher@cartel-securite.fr \
--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