After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 706149 - honor settings for net.ipv6.conf.default.use_tempaddr in /etc/sysctl.d/*
honor settings for net.ipv6.conf.default.use_tempaddr in /etc/sysctl.d/*
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: IP and DNS config
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on: 705170
Blocks:
 
 
Reported: 2013-08-16 16:20 UTC by Poncho
Modified: 2016-11-25 16:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Poncho 2013-08-16 16:20:07 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
Comment 1 Pavel Simerda 2013-08-16 16:37:11 UTC
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.
Comment 2 Thomas Haller 2016-11-25 16:51:28 UTC
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.
Comment 3 Thomas Haller 2016-11-25 16:52:29 UTC
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.