netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Flo Wohlfart <wohlfart@in.tum.de>
To: netfilter-devel@vger.kernel.org
Subject: ICMP packet filter policy
Date: Thu, 03 May 2012 18:32:13 +0200	[thread overview]
Message-ID: <4FA2B30D.7000403@in.tum.de> (raw)

Hi,

due to a bug in a home-router, I had to deal with ICMP packets with a 
wrong checksum. I discovered that netfilter does not drop ICMP packets 
with a wrong checksum in the ICMP header.

I have set up IP forwarding and NAT on a Debian host using iptables. On 
this host iptables/netfilter allows outgoing "ICMP destination 
unreachable" packets with a wrong ICMP checksum. These ICMP packets are 
translated by NAT and forwarded to the public network interface.

When I replace the Debian host with an OpenWRT router, outgoing "ICMP 
destination unreachable" packets need to have a correct checksum. 
Otherwise they are dropped. OpenWRT also uses iptables/netfilter for 
packet filtering and NAT. However, there is no iptables-rule that could 
explain this behavior.

I would like to know why these two versions of netfilter behave 
differently. Is there a configuration option to tell netfilter to filter 
these messages? Should NAT implementations filter these ICMP messages 
with a wrong checksum?

I know this is a rather special issue, but maybe someone can help :)

Regards
Florian Wohlfart

                 reply	other threads:[~2012-05-03 16:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4FA2B30D.7000403@in.tum.de \
    --to=wohlfart@in.tum.de \
    --cc=netfilter-devel@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;
as well as URLs for NNTP newsgroup(s).