From: Patrick McHardy <kaber@trash.net>
To: Jan Engelhardt <jengelh@medozas.de>
Cc: Netfilter Developer Mailing List
<netfilter-devel@vger.kernel.org>,
Netfilter Core Team <coreteam@netfilter.org>
Subject: Re: [RFC PATCH] netfilter: nf_nat: support user-specified SNAT rules in LOCAL_IN
Date: Thu, 17 Jun 2010 09:55:26 +0200 [thread overview]
Message-ID: <4C19D4EE.3080906@trash.net> (raw)
In-Reply-To: <alpine.LSU.2.01.1006170952010.15602@obet.zrqbmnf.qr>
Jan Engelhardt wrote:
> On Thursday 2010-06-17 09:44, Patrick McHardy wrote:
>
>> Jan Engelhardt wrote:
>>
>>> I am not sure I follow whatever this is supposed to do.
>>>
>>> Packet from eth0: src=10.0.0.15 dst=10.0.1.22
>>> INPUT#NETMAP will dst transform that to dst=10.0.0.22
>>>
>> nat/INPUT performs source NAT, not destination NAT.
>>
>>
>>> POSTROUTING#NETMAP will src transform that to src=10.0.0.15
>>>
>>> Is is this step that makes no sense to me.
>>>
>> Does it make sense now?
>>
>
> Somewhat, but there's still
>
>
>>>> However this doesn't work for packets destined for the
>>>> machine performing NAT itself
>>>>
>
> Why would it not? What would cause misdelivery if PREROUTING
> was used instead of INPUT?
>
PREROUTING performs DNAT. The purpose is to map the two
identical networks to non-clashing networks. Just consider two
connections from the same source address and port number
to the same destination.
next prev parent reply other threads:[~2010-06-17 7:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-16 15:09 [RFC PATCH] netfilter: nf_nat: support user-specified SNAT rules in LOCAL_IN Patrick McHardy
2010-06-17 7:28 ` Jan Engelhardt
2010-06-17 7:44 ` Patrick McHardy
2010-06-17 7:52 ` Jan Engelhardt
2010-06-17 7:55 ` Patrick McHardy [this message]
2010-06-17 8:58 ` Jan Engelhardt
2010-06-17 15:22 ` Patrick McHardy
2010-06-20 8:31 ` Jan Engelhardt
2010-06-22 7:20 ` Patrick McHardy
2010-06-28 14:40 ` Jan Engelhardt
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=4C19D4EE.3080906@trash.net \
--to=kaber@trash.net \
--cc=coreteam@netfilter.org \
--cc=jengelh@medozas.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).