All of lore.kernel.org
 help / color / mirror / Atom feed
* flushing secondary address deletes conntrack entries using primary IP
@ 2013-05-24  8:00 markdv
  0 siblings, 0 replies; only message in thread
From: markdv @ 2013-05-24  8:00 UTC (permalink / raw)
  To: netfilter

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-05-24  8:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-24  8:00 flushing secondary address deletes conntrack entries using primary IP markdv

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.