From: Ramin Alidousti <ramin@cannon.eng.us.uu.net>
To: Joe Patterson <jpatterson@asgardgroup.com>
Cc: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>,
Nick Drage <nickd@funkyjesus.org>,
netfilter@lists.samba.org
Subject: Re: What ICMP packets does state RELATED allow?
Date: Thu, 6 Jun 2002 13:34:51 -0400 [thread overview]
Message-ID: <20020606173451.GA1551@cannon.eng.us.uu.net> (raw)
In-Reply-To: <NJEFLNJDIFFNMHDEBKMJAEFPDOAA.jpatterson@asgardgroup.com>
On Thu, Jun 06, 2002 at 09:55:09AM -0400, Joe Patterson wrote:
> That's interesting... I guess it could make sense... sort of...
>
> but, to be really obnoxious about it, I would think it would make sense to
> have rules such as:
>
> for IF in `ifconfig | cut -d " " -f 1 | grep -v ^$`; do
> $IPT -A INPUT -p icmp --icmp-type 5 -m state --state RELATED -i $IF -s `ip
> addr ls dev $IF | grep inet | cut -d " " -f 6` -j ACCEPT
> done
>
> and
>
> $IPT -A FORWARD -p icmp --icmp-type 5 -j DROP
>
> on the basis of my belief that you should never ever have a redirect
> crossing a router, but you *may* want to accept redirects from local
> gateways...
>
> Any thoughts?
You're absolutely right. An ICMP redirect is sent from one interface
to another interface on the _same_ subnet. In some ways it should be
seen as something like an ARP which has a layer 2 significance. However,
proxying ARP make sense but proxying (or forwarding in general) of an
ICMP redirect does not make sense at all. Whether it could be seen as
RELATED or not is sort of philosophical matter as ICMP redirect is meant
to _notify_ a forwarding entity of the existence of a better next-hop on
the _same_ subnet. So, is this kind of thing RELATED? Yes, in the sense
that it is caused by the forwarding of _that_ packet and no, in the sense
that the same redirect could get triggered by lots of other non related
conn's and besides ignoring these redirects would not harm the communication
at all.
Ramin
>
> -Joe
next prev parent reply other threads:[~2002-06-06 17:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-05 22:07 What ICMP packets does state RELATED allow? Nathan Cassano
2002-06-05 22:29 ` Nick Drage
2002-06-06 0:28 ` Joe Patterson
2002-06-06 11:50 ` Jozsef Kadlecsik
2002-06-06 13:55 ` Joe Patterson
2002-06-06 17:34 ` Ramin Alidousti [this message]
2002-06-06 22:59 ` Joe Patterson
2002-06-07 14:14 ` Ramin Alidousti
2002-06-07 7:04 ` 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=20020606173451.GA1551@cannon.eng.us.uu.net \
--to=ramin@cannon.eng.us.uu.net \
--cc=jpatterson@asgardgroup.com \
--cc=kadlec@blackhole.kfki.hu \
--cc=netfilter@lists.samba.org \
--cc=nickd@funkyjesus.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