From: "Jason A. Donenfeld" <Jason@zx2c4.com>
To: Florian Westphal <fw@strlen.de>
Cc: netfilter-devel@vger.kernel.org, davem@davemloft.org
Subject: Re: [PATCH] net/icmp: restore source address if packet is NATed
Date: Thu, 9 Nov 2017 09:35:16 +0900 [thread overview]
Message-ID: <CAHmME9oYGQpr7+aq7ByQ4UVYMY5aFky09NrHpVRYNMZ+XiDVDw@mail.gmail.com> (raw)
In-Reply-To: <20171109000134.GC5512@breakpoint.cc>
On Thu, Nov 9, 2017 at 9:01 AM, Florian Westphal <fw@strlen.de> wrote:
> I think correct solution is to never allow drivers to do something like
> this. What is the use case here? Normal IP stack should send
> imcp/pkttobig errors, and that will work fine since it occurs pre-snat.
The use case is particular tunneling devices -- virtual interfaces.
It's possible that a tunnel device won't be able to transmit a packet,
due to some particular state issue -- no encryption key available,
incomplete configuration for a particular destination, etc -- and in
that case, it's quite important to be able to send an error --
ICMP_DEST_UNREACH,ICMP_HOST_UNREACH -- back to the sender, rather than
letting packets disappear into a blackhole without any useful
notification.
next prev parent reply other threads:[~2017-11-09 0:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 14:08 [PATCH] net/icmp: restore source address if packet is NATed Jason A. Donenfeld
2017-11-09 0:01 ` Florian Westphal
2017-11-09 0:35 ` Jason A. Donenfeld [this message]
-- strict thread matches above, loose matches on Subject: below --
2017-06-24 2:17 Jason A. Donenfeld
2017-06-25 15:49 ` David Miller
2017-06-25 22:52 ` Jason A. Donenfeld
2017-06-26 1:48 ` David Miller
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=CAHmME9oYGQpr7+aq7ByQ4UVYMY5aFky09NrHpVRYNMZ+XiDVDw@mail.gmail.com \
--to=jason@zx2c4.com \
--cc=davem@davemloft.org \
--cc=fw@strlen.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 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.