IPv6 Privacy Extensions: Does a Public IPv6 Address Expose Your Device?

Blog / Networking basics

IPv6 Privacy Extensions: Does a Public IPv6 Address Expose Your Device?

It can, but how much depends on how your system generates its address. A device with IPv6 privacy extensions (temporary addresses) enabled connects outward using a random address that rotates daily, so websites have a hard time recognizing your device over the long term by address alone. A device without them may keep using one fixed address, and older systems may even encode the network card's MAC address into it. Windows, macOS, iOS and Android enable privacy extensions by default, and some desktop Linux distributions (Ubuntu, for example) do too. Server distributions, routers, NAS boxes and some embedded devices may not. Below are the checks for each system.

This article covers only the privacy properties of the IPv6 address itself. If your problem is "the proxy is on but IPv6 still goes out through my local connection," that is a different issue, covered in IPv6 proxy not working: why IPv4 and IPv6 exits differ on dual-stack networks.

Why is every device "exposed" on IPv6?

In the IPv4 era, the phones, computers and TVs in a home usually shared one public address on the router (and often even that was a shared address behind the ISP's CGNAT; to check, see Do I have a public IP? Three steps to tell whether you are behind carrier-grade NAT). Websites could see only "this household," not which device.

IPv6 has no such NAT layer. The ISP delegates a prefix to your home (commonly /56 or /60, sometimes a single /64, and the router carves /64s out for the LAN). Each device generates the lower 64 bits itself within that /64 and ends up with a globally unique, publicly routable address. So:

  • Upper 64 bits (the prefix): identify your home broadband line, much like an IPv4 public address does.
  • Lower 64 bits (the interface identifier, IID): identify one particular device in your home.

The privacy problem lives in the lower 64 bits. If they never change, websites and ad networks can link visits from the same device across time. If they follow the device around, then when you move from home to the office to a coffee shop, the prefix changes but the lower 64 bits stay the same, and the device can still be recognized. For the basic differences between IPv4 and IPv6, see IPv4 vs IPv6: what's the difference, and how to check which one you are using.

Three kinds of interface identifier: EUI-64, stable privacy and temporary

TypeHow it is generatedChanges across networks?Changes over time?Privacy risk
EUI-64Derived from the NIC's MAC address: ff:fe inserted in the middle, one bit flippedNoNoHigh: trackable across networks, and the MAC and NIC vendor can be recovered
Stable privacy address (RFC 7217)Hash of prefix, NIC, secret key and so onYesNot within the same networkMedium: fixed long-term on one network, but cannot be linked across networks
Temporary address (RFC 8981, formerly RFC 4941)Randomly generated, replaced periodicallyYesYesLow: used for outgoing connections and replaced after a while

How do you spot EUI-64 at a glance? Look for ff:fe in the middle of the lower 64 bits. Take the example address 2001:db8:1:2:2a0:c9ff:fe12:3456 (2001:db8::/32 is the documentation-only prefix). Remove the ff:fe in the middle, join the two sides, and flip the 7th bit from the high end of the first byte back, and you get the NIC's MAC, 00:a0:c9:12:34:56. The first three bytes are the vendor code, which can be looked up to identify the NIC brand.

Modern systems usually hold two kinds of global addresses at once: a stable address (RFC 7217 or EUI-64) for inbound connections, and one or more temporary addresses for connections they initiate. "IPv6 privacy extensions" refers to the latter: when the system opens an outgoing connection, it prefers the temporary address as the source.

RFC 8981 defaults are a preferred lifetime of 1 day and a valid lifetime of 2 days for temporary addresses. So roughly once a day a new temporary address is generated, and the old one becomes "deprecated": it is no longer used for new connections, while existing connections keep using it until they end. Seeing several temporary addresses on a system is therefore normal.

How do you check and enable it on Windows?

Since Windows Vista, temporary addresses and random interface identifiers have been on by default. The commands below confirm nobody changed that.

View current settings (PowerShell):

Get-NetIPv6Protocol | Format-List RandomizeIdentifiers, UseTemporaryAddresses, MaxTemporaryPreferredLifetime, MaxTemporaryValidLifetime

UseTemporaryAddresses should be Enabled, and so should RandomizeIdentifiers (the latter controls whether the stable address uses a random value instead of an EUI-64 derived from the MAC).

You can also use netsh:

netsh interface ipv6 show privacy
netsh interface ipv6 show global

View the actual addresses:

ipconfig

You will see two kinds of entries: IPv6 Address and Temporary IPv6 Address (on a Chinese-language Windows these appear as "IPv6 地址" and "临时 IPv6 地址").

If it was turned off, re-enable it (PowerShell as administrator):

Set-NetIPv6Protocol -UseTemporaryAddresses Enabled
Set-NetIPv6Protocol -RandomizeIdentifiers Enabled

The equivalent netsh commands:

netsh interface ipv6 set privacy state=enabled
netsh interface ipv6 set global randomizeidentifiers=enabled

After the change, disable and re-enable the network adapter, or reboot, so the addresses are regenerated. Many "disable temporary addresses" tutorials online come from server administration, where a fixed outbound address is needed for allowlists. Don't copy them onto a desktop PC.

How do you check and enable it on macOS?

macOS enables temporary addresses by default, and its stable address is no longer EUI-64 but an opaque address similar to RFC 7217.

View the setting:

sysctl net.inet6.ip6.use_tempaddr

A return value of 1 means enabled.

View the actual addresses:

ifconfig en0 | grep inet6

Look at the flag at the end of each line:

  • autoconf secured: the stable address (contains no MAC).
  • autoconf temporary: the temporary address, which is what outgoing connections use.

If your Wi-Fi is not en0, first run networksetup -listallhardwareports to find the right device name.

If it was turned off:

sudo sysctl -w net.inet6.ip6.use_tempaddr=1

This change is lost on reboot. Normally the system default is already 1. If it keeps reverting to 0 after every restart, a config file or management tool (for example a configuration profile pushed by your employer) is changing it. Find the source instead of editing it by hand each time.

How do you check and enable it on Linux?

Linux is the least uniform: the kernel does not enable temporary addresses by default, and each distribution and network manager then overrides that in its own way. Most desktop distributions turn it on; server images and cloud instances usually don't (servers don't really need it).

View the kernel parameters:

sysctl net.ipv6.conf.all.use_tempaddr
sysctl net.ipv6.conf.default.use_tempaddr
sysctl net.ipv6.conf.eth0.use_tempaddr   # replace with your interface name

What the values mean:

ValueMeaning
0 or -1No temporary addresses
1Generate temporary addresses, but outgoing connections still prefer the stable address
2Generate temporary addresses and prefer them for outgoing connections (recommended for desktops)

Note that 1 does not mean privacy protection is on: the address is generated, but the browser still uses the stable address when visiting sites.

View the actual addresses:

ip -6 addr show scope global

Addresses flagged temporary are temporary addresses; the one flagged mngtmpaddr is the stable address from which temporary addresses are derived.

Enable and persist (using interface eth0 as an example):

sudo tee /etc/sysctl.d/40-ipv6-privacy.conf <<'EOF'
net.ipv6.conf.all.use_tempaddr = 2
net.ipv6.conf.default.use_tempaddr = 2
net.ipv6.conf.eth0.use_tempaddr = 2
EOF
sudo sysctl --system

Changing only all does not necessarily take effect on interfaces that already exist, so write the specific interface too.

On distributions that use NetworkManager, also check the connection's own settings, because a value set on the connection overrides the kernel parameter:

nmcli -f ipv6.ip6-privacy,ipv6.addr-gen-mode connection show "your-connection-name"
sudo nmcli connection modify "your-connection-name" ipv6.ip6-privacy 2 ipv6.addr-gen-mode stable-privacy
sudo nmcli connection up "your-connection-name"

With addr-gen-mode set to stable-privacy, the stable address is no longer derived from the MAC either.

On systems that use systemd-networkd, add this to the [Network] section of the relevant .network file:

IPv6PrivacyExtensions=yes

Then run sudo networkctl reload.

Which address does a website actually see?

Having a temporary address on the system does not mean websites see it. The most direct way is to have an outside party tell you.

  1. Open cdnping's IP and environment check and look at the IPv6 exit address shown in the IPv4/IPv6 detection row.
  2. List all global IPv6 addresses on your machine (using the commands for the three systems above).
  3. Compare:
    • If the address the site sees has the temporary flag or appears under "Temporary IPv6 Address": privacy extensions are working.
    • If the site sees the stable address: temporary addresses are off, or on Linux use_tempaddr is 1 rather than 2.
    • If ff:fe appears in the middle of the lower 64 bits: you are using EUI-64, so fix that first.
    • If the site sees only IPv4: your network or proxy is not using IPv6. The issue in this article does not affect you for now, but watch for a dual-stack exit mismatch.

You can also confirm from the command line. This request goes over IPv6 only, and the ip= in the response is the source address the other side sees:

curl -6 -s https://www.cloudflare.com/cdn-cgi/trace | grep ip=

Test again a day or two later. When temporary addresses are working, the lower 64 bits should have changed while the prefix stays the same.

What is still exposed with privacy extensions on?

Temporary addresses solve only one thing, which is that the lower 64 bits can identify a device. They do not cover the following:

  • The prefix still identifies your home broadband. Every visit from the same /64 (or even the same /56) can be tied to one household. Whether a home prefix changes depends on the ISP: some change it on every reconnect, others keep it for a long time. For how precisely a prefix can locate you and what ISP information it reveals, see What your IP address actually reveals.
  • Inbound reachability. Temporary addresses address tracking, not firewalling. Whether a device with a public IPv6 address can be reached from the internet depends on the IPv6 firewall in your modem or router. Check the router admin page to confirm that inbound IPv6 is denied by default, and open only the services you actually need.
  • WebRTC may expose all local addresses. When a browser's WebRTC gathers candidate addresses, it may include the stable address. For the mechanism, see DNS leaks and WebRTC leaks; for per-browser settings, see How to disable WebRTC leaks in Chrome, Firefox and Safari.
  • Browser fingerprint and login state. Even after the address changes, cookies, account logins and browser fingerprints can still identify you. For the specific signals, see What is browser fingerprinting: 20+ signals that identify you without cookies, and how to self-check.

When should you not enable temporary addresses?

  • Servers that provide services to the outside. Inbound traffic already uses the stable address, and outbound temporary addresses only complicate firewall allowlists and log analysis. This is why many ops articles teach you to disable temporary addresses.
  • Cases that need a fixed outbound address. For example, if an API only allows allowlisted IPv6 addresses, a temporary address that changes daily will cause sudden rejections the next day. In that case, turn it off for that machine only, or assign it a separate fixed address.
  • Don't misdiagnose during long-connection debugging. After a temporary address is deprecated, existing connections keep using the old address while new connections use the new one. Seeing several source addresses for the same machine in logs is normal, not a sign of hijacking.

Five-minute checklist

  • The IPv6 address shown at /en/ip has no ff:fe in the middle of its lower 64 bits
  • Your machine shows an address marked temporary
  • The address websites see is one of those temporary addresses
  • On a Linux desktop, use_tempaddr is 2, and NetworkManager's ip6-privacy is also 2
  • The router's IPv6 firewall denies inbound traffic by default
  • The browser's WebRTC does not expose extra addresses
  • A day or two later, the lower 64 bits have changed

To go through exit IP, DNS, WebRTC and API connectivity in one pass, continue with Developer network self-check list (2026): from exit IP to AI API speed tests.

Related articles

Keep reading