GNOME Bugzilla – Bug 706149
honor settings for net.ipv6.conf.default.use_tempaddr in /etc/sysctl.d/*
Last modified: 2016-11-25 16:52:29 UTC
currently, networkmanager parses only /etc/sysctl.conf or /lib/sysctl.d/sysctl.conf see http://cgit.freedesktop.org/NetworkManager/NetworkManager/tree/src/devices/nm-device.c#n3093 Ubuntu/Debian uses the lp990011_use_tempaddr_sysctl_default.patch to parse /etc/sysctl.d/10-ipv6-privacy.conf see https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/998223 and there's a bugreport for gentoo see https://bugs.gentoo.org/show_bug.cgi?id=457092 please consider parsing all config files in /etc/sysctl.d/* as mentioned in http://www.freedesktop.org/software/systemd/man/sysctl.d.html
Sounds reasonable if we still want support use_tempaddr now that we are not using kernel IPv6 autoconf implementation. I don't have strong opinion on that, though.
ah, this is actually fixed in the meantime, but in a different way: 1) there is the per-connection value ipv6.ip6-privacy to force-set the value. 2) if you leave the per-connection setting unset (-1) -- which is also the default value for new connections -- then the globally configured default kicks in. 3) you can configure in /etc/NetworkManager/NetworkManager.conf something like [connection] ipv6.ip6-privacy 2 to override the default value. This is actually quite powerful, e.g. you can place a connection snippet /etc/NetworkManager/conf.d/my-ip6-privacy-for-eth0.conf like: [connection.my-ip6-privacy-override] match-device=interface-name:eth0 ipv6.ip6-privacy 0 4) if still there is no global default, we use /proc/sys/net/ipv6/conf/default/use_tempaddr. see `man nm-settings` and `man NetworkManager.conf`. NM doesn't read any sysctl from /etc anymore.
maybe that wasn't clear above, but now you have multiple ways to configure the setting in NetworkManager, and if you don't configure anything, the default is /proc/sys/net/ipv6/conf/default/use_tempaddr which happens to be what was in your sysctl files.