Difference between revisions of "Disable IPv6 Privacy"

From Luna Node
Jump to: navigation, search
Line 7: Line 7:
  
 
Note: Ubuntu templates on Luna Node Dynamic were configured to disable IPv6 privacy extension by default on 17 August 2015. Virtual machines created after that time do not need reconfiguration.
 
Note: Ubuntu templates on Luna Node Dynamic were configured to disable IPv6 privacy extension by default on 17 August 2015. Virtual machines created after that time do not need reconfiguration.
 +
 +
You may additionally wish to prefer IPv4 for outgoing connections over IPv6. To perform this update in Debian/Ubuntu, edit <tt>/etc/gai.conf</tt> and uncomment the line that looks like this:
 +
 +
<nowiki>#    For sites which prefer IPv4 connections change the last line to                                                                                                                                             
 +
#                                                                                                                                                                                                                 
 +
precedence ::ffff:0:0/96  100    </nowiki>

Revision as of 22:22, 18 August 2015

Ubuntu and some other operating systems have IPv6 privacy extensions enabled by default. This extension will cause outgoing IPv6 connections to fail when using the default network. To disable IPv6 privacy in Ubuntu, edit /etc/sysctl.d/10-ipv6-privacy.conf and set both fields to 0, like this:

net.ipv6.conf.all.use_tempaddr = 0
net.ipv6.conf.default.use_tempaddr = 0

Then run sysctl --system to reload the configuration.

Note: Ubuntu templates on Luna Node Dynamic were configured to disable IPv6 privacy extension by default on 17 August 2015. Virtual machines created after that time do not need reconfiguration.

You may additionally wish to prefer IPv4 for outgoing connections over IPv6. To perform this update in Debian/Ubuntu, edit /etc/gai.conf and uncomment the line that looks like this:

#    For sites which prefer IPv4 connections change the last line to                                                                                                                                               
#                                                                                                                                                                                                                  
precedence ::ffff:0:0/96  100