From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: Steven Kath <steven.kath@vyatta.com>
Cc: Pandu Poluan <pandu@poluan.info>,
netfilter@vger.kernel.org, Atle Solbakken <atle@goliathdns.no>
Subject: Re: When does NAT processing actually takes place?
Date: Sat, 19 Mar 2011 11:02:35 +0100 [thread overview]
Message-ID: <4D847F3B.2070303@plouf.fr.eu.org> (raw)
In-Reply-To: <1237758709.21621.1300343546963.JavaMail.root@tahiti.vyatta.com>
Steven Kath a écrit :
>
> Unless I'm mistaken, the "inverse NAT" is part of the conntrack set of
> functions.
Unless I'm mistaken, the direct and inverse NAT is performed in the nat
hooks, called after the mangle chains. Destination NAT is performed in
the PRE_ROUTING or LOCAL_OUT (OUTPUT) hook, and source NAT is performed
in the POST_ROUTING or LOCAL_IN (INPUT) hook.
> The conntrack table contains both the pre-NAT and post-NAT
> address:port pairings,
Yes, but AFAIK this is only used for connection tracking purpose, so
that packets in the original and reply directions can be related to the
conntrack entry.
next prev parent reply other threads:[~2011-03-19 10:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <282984944.21619.1300343429509.JavaMail.root@tahiti.vyatta.com>
2011-03-17 6:32 ` When does NAT processing actually takes place? Steven Kath
2011-03-17 8:43 ` Pandu Poluan
2011-03-19 10:02 ` Pascal Hambourg [this message]
2011-03-17 0:20 Pandu Poluan
2011-03-17 0:48 ` Atle Solbakken
2011-03-17 2:08 ` Pandu Poluan
[not found] ` <AANLkTik7yeZMEx8ujCPd-fkFa1GRN9Ad82SDJi2emk88@mail.gmail.com>
2011-03-17 1:59 ` Pandu Poluan
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=4D847F3B.2070303@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=atle@goliathdns.no \
--cc=netfilter@vger.kernel.org \
--cc=pandu@poluan.info \
--cc=steven.kath@vyatta.com \
/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).