There is a point to this story, but it has temporarily escaped my mind...
Contact Me MyFaceBook MyLinkedIn MyGitHub MyTwitter

IPv6 Privacy Extensions

Privacy Extensions as defined in RFC4941 make your device change its IP every now and then. In Ubuntu, these privacy addresses are not enabled by default. Their generation is activated via the sysctl directive use_tempaddr that can be set to one of the following values:

  • 0 Don’t use privacy extensions.
  • 1 Generate privacy addresses
  • 2 Prefer privacy addresses and use them over the normal addresses.

You can activate privacy addresses in Ubuntu in one of two ways. You can enable it permanently by adding net.ipv6.conf.all.use_tempaddr=2 to /etc/sysctl.conf. Or enable it temporaily which will be reset on reboot:

echo 2 >/proc/sys/net/ipv6/conf/all/use_tempaddr

You can replace all with eth0 to set the value for a particular network interface.

Copyright © 2015 by Julian Easterling. SOME RIGHTS RESERVED.

Creative Commons License
Except where otherwise noted, content on this site is
licensed under a Creative Common Attribution-Share Alike 4.0 International License.


All of the opinions expressed on this website are those of Julian Easterling and
do not represent the views of any of my current and previous clients or employers in any way.

If you notice an error on the site or content that has not been properly attributed, bring
it to my attention using the contact page and I will endeavor to fix it as soon as I can.

I accept no responsibility or liability for any damages incurred by following any of
my advice or by using any of the information on my site or of those sites that I link to.