* ICMP packet filter policy
@ 2012-05-03 16:32 Flo Wohlfart
0 siblings, 0 replies; only message in thread
From: Flo Wohlfart @ 2012-05-03 16:32 UTC (permalink / raw)
To: netfilter-devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-05-03 16:41 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-03 16:32 ICMP packet filter policy Flo Wohlfart
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).