published on
tags: debian linux ipv6

enable ipv6 privacy extension in debian linux

At least when using/installing a desktop environment this should be enabled by default

enable ipv6 privacy extension

To enable the ipv6 privacy extension you have to execute the following commands as root (or via sudo): you’ll have to replace eth0 with the correct interface name!

sysctl net.ipv6.conf.all.use_tempaddr=2
sysctl net.ipv6.conf.default.use_tempaddr=2
sysctl net.ipv6.conf.eth0.use_tempaddr=2

You may need to restart your networking environment,….

If you want to enable the extension permanently just add the following lines to /etc/sysctl.conf:

net.ipv6.conf.all.use_tempaddr=2
net.ipv6.conf.default.use_tempaddr=2
net.ipv6.conf.eth0.use_tempaddr=2