From: Patrick McHardy <kaber@trash.net>
To: Mark Huang <mlhuang@CS.Princeton.EDU>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: Resolving inner ICMP connections
Date: Sun, 04 Dec 2005 17:18:51 +0100 [thread overview]
Message-ID: <439316EB.2030401@trash.net> (raw)
In-Reply-To: <438F501A.5060804@cs.princeton.edu>
Mark Huang wrote:
> Hi all,
>
> Is it a bug that
> net/ipv4/netfilter/ip_conntrack_proto_icmp.c:icmp_error_message()
> associates ICMP error message packets with the connection specified in
> the inner IP packet, even if the direction of that connection makes no
> sense?
That depends. What do you mean with "makes no sense"?
> I found a router in France that accidentally swaps the direction of the
> inner IP packet, instead of preserving it verbatim inside the ICMP error
> message. So, for instance, if you (A) traceroute it (B):
Maybe an old version of linux? :) NAT used to do stange things to
locally generated ICMP packets until about a year ago.
> IP: A -> B
> UDP: a -> b
>
> You get back an ICMP destination unreachable message that looks like:
>
> IP: B -> A
> ICMP: type 3, code 3
> IP: B -> A
> UDP: b -> a
>
> Instead of:
>
> IP: B -> A
> ICMP: type 3, code 3
> IP: A -> B
> UDP: a -> b
>
> Obviously there's something seriously wrong with this router. What
> happens is that the ICMP error message gets associated with the original
> side of the connection (as in IP_CT_DIR_ORIGINAL), not the reply side,
> messing up a few assumptions I was making in my NF_IP_LOCAL_IN hook.
What are these assumptions?
next prev parent reply other threads:[~2005-12-04 16:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-01 19:33 Resolving inner ICMP connections Mark Huang
2005-12-04 16:18 ` Patrick McHardy [this message]
[not found] ` <43933E81.3080702@cs.princeton.edu>
2005-12-04 20:24 ` Patrick McHardy
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=439316EB.2030401@trash.net \
--to=kaber@trash.net \
--cc=mlhuang@CS.Princeton.EDU \
--cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.