From: Florian Westphal <fw@strlen.de>
To: Kristian Evensen <kristian.evensen@gmail.com>
Cc: Florian Westphal <fw@strlen.de>,
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:18:26 +0200 [thread overview]
Message-ID: <20130816111826.GC5154@breakpoint.cc> (raw)
In-Reply-To: <CAKfDRXgNtPgQjtrSL=oVkws6GB_sTv+h+-_GLVvVvpWoEHBRnw@mail.gmail.com>
Kristian Evensen <kristian.evensen@gmail.com> wrote:
> I added a pr_info() here to see when this function was called. It is
> triggered when the link goes down, as expected, but not when I just
> change the mark and move the flows to another interface. I still see
> the DESTROY/NEW-behavior though.
Yes, its handled by iptable_nat.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
>
> Thanks for letting me know, I will start looking into this function.
> Does this mean that even when using SNAT, the old mapping is deleted
> and a new created?
No.
> And does this event not notify conntrack?
It generates a destroy event.
next prev parent reply other threads:[~2013-08-16 11:18 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
2013-08-16 11:14 ` Kristian Evensen
2013-08-16 11:18 ` Florian Westphal [this message]
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=20130816111826.GC5154@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