From: Florian Westphal <fw@strlen.de>
To: Kristian Evensen <kristian.evensen@gmail.com>
Cc: netfilter@vger.kernel.org, netdev@vger.kernel.org
Subject: Re: MASQUERADE/SNAT and multiple interfaces with the same IP
Date: Fri, 16 Aug 2013 13:04:43 +0200 [thread overview]
Message-ID: <20130816110443.GB5154@breakpoint.cc> (raw)
In-Reply-To: <CAKfDRXjXkY--PjXAa1m=As+Vf_1__WBokkTAE5BHg+gxsM9Yxw@mail.gmail.com>
Kristian Evensen <kristian.evensen@gmail.com> wrote:
> After spending long time looking at the source code, I can't figure
> out why this happens. Once the MASQUERADE/SNAT rule has been inserted,
> to me everything looks the same.
The MASQUERADE target zaps conntracks that it "owned" when the
associated link goes down, see masq_device_event() in ipt_MASQUERADE.c
Also, the nat core zaps conntracks when they are sent out on an
interface other than the original interface.
See nf_nat_oif_changed() in iptable_nat.c
next prev parent reply other threads:[~2013-08-16 11:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-16 10:55 MASQUERADE/SNAT and multiple interfaces with the same IP Kristian Evensen
2013-08-16 11:04 ` Florian Westphal [this message]
2013-08-16 11:14 ` Kristian Evensen
2013-08-16 11:18 ` Florian Westphal
2013-08-16 11:23 ` Kristian Evensen
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=20130816110443.GB5154@breakpoint.cc \
--to=fw@strlen.de \
--cc=kristian.evensen@gmail.com \
--cc=netdev@vger.kernel.org \
--cc=netfilter@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