From: markdv <markdv77@gmail.com>
To: netfilter@vger.kernel.org
Subject: flushing secondary address deletes conntrack entries using primary IP
Date: Fri, 24 May 2013 10:00:45 +0200 [thread overview]
Message-ID: <knn6n8$3ga$1@ger.gmane.org> (raw)
Hi,
Long story short, I found out that if there is a MASQUARADE rule in
iptables that source-NATs connections (using the primary interface IP)
the conntrack entries for these connections get DESTROYed whenever a
secondary IP on the interface gets removed.
Why? These connections/conntrack-entries only use/depend-on the primary
IP. Why should removing a secondary IP address on the interface affect
those entries?
This is on linux 3.2, assuming this behavior is unchanged in more
current versions(??), should this be considered a bug?
Regards,
Mark.
p.s. To elaborate a bit on why this is a problem for me... The primary
public IP of my linux router is obtained via DHCP. In order to use the
management IP of my (otherwise transparent) DSL-bridge/modem I also need
a secondary private IP address on the interface. This address is also
set/managed by dhclient by using an "alias" definition in dhclient.conf.
The dhclient-script shipped with Ubuntu (version 11.10+) removes/re-adds
this alias every time the lease of the primary (public) address is
renewed. Which results in all contrack entries using the primary IP to
be DESTROYED, and connections to be reset.
reply other threads:[~2013-05-24 8:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='knn6n8$3ga$1@ger.gmane.org' \
--to=markdv77@gmail.com \
--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