Skip to content

Lesson 4 of 18 · 20m

IPv6 in Production: The Second Network You're Already On

Dual-stack reality: Happy Eyeballs hides your broken AAAA path, ICMPv6 is load-bearing, and there is no NAT66 to hide behind.

Your server is already speaking IPv6. Every Linux host autoconfigures a link-local fe80:: address on every interface whether you asked or not, localhost resolves to ::1 before 127.0.0.1 on most modern resolvers, and Google's IPv6 adoption dashboard has hovered in the mid-40% range globally since 2023. The question is never whether v6 is in your path. It's whether you've looked at it.

Two protocols sharing a wire, not an upgrade

IPv6 isn't IPv4 with more digits. The pieces that matter operationally:

  • Neighbor Discovery replaces ARP. ICMPv6 multicast, not broadcast: NS/NA to resolve a neighbor's address, RS/RA so hosts learn their prefix and gateway. Filter ICMPv6 like it's ICMPv4 ping and you have severed the protocol's arms — the classic firewall self-own.
  • SLAAC vs DHCPv6. Router Advertisements hand out a /64 and hosts self-assign. Android refuses DHCPv6 outright — Lorenzo Colitti, Android's network lead, declined it on the record. A deployment plan that requires DHCPv6 is a plan Android won't join.
  • There is no NAT66. NAT was an IPv4 address-scarcity workaround that leaked into security folklore. A public address is not an attack surface — missing firewall rules are. v6 removes the crutch, not the protection.
  • Privacy extensions (RFC 4941, refined by RFC 8981) rotate the interface identifier so clients can't be tracked by address — which is why your logs show a different v6 for the same laptop every few hours.

Dual-stack is where the bugs live

The modern failure mode isn't "no IPv6" — it's half an IPv6 deployment. RFC 8305 Happy Eyeballs exists because broken v6 paths were common enough to ruin v4 users: the client races the AAAA connection against the A connection with roughly a 250 ms head start for v6 and takes whichever completes. This hides outages completely. Your AAAA record points at a v6 that blackholes; nobody files a ticket, because every browser silently falls back. The only evidence is that v6-native clients — T-Mobile US runs IPv6-only internally, with NAT64 at the edge — get a mysteriously bad experience.

The host-side traps:

  • listen 0.0.0.0 binds v4 only. If the box and the load balancer are dual-stack but the app binds v4, v6-only clients hit a wall that never appears in your traceroutes. ss -tlnp shows which families you're actually bound to.
  • ::ffff:10.1.2.3 is an IPv4-mapped address — dual-stack sockets (Linux defaults net.ipv6.bindv6only=0) deliver v4 clients to v6 listeners in that form. Validation regexes and allowlists built on ^10\. silently reject them.
  • ::1 is not 127.0.0.1 to an allowlist. Apps that treat loopback as trusted get surprised when the same request arrives on the other family's loopback.
  • Docker bridge networks don't enable IPv6 by default — a container can be v4-only on a fully dual-stacked host.

Try this

ip -6 addr                     # what v6 does this host actually have
ip -6 route                    # including the default
dig AAAA your.domain +short    # is there an AAAA record at all
curl -6 https://your.domain    # does the v6 path serve
ping6 -c3 google.com           # can this host reach v6
ss -tlnp | grep -v '127.0.0'   # which families are listening

The killer test is curl -6 against your own domain. If you publish AAAA and it fails, Happy Eyeballs has been papering over it for every dual-stack user you have.

Field notes

  • Don't net.ipv6.conf.all.disable_ipv6=1 to fix a connectivity problem you haven't diagnosed. That's a v4-era reflex that deletes the evidence.
  • Rate limiting and GeoIP degrade on v6 — privacy extensions rotate addresses inside a /64, so per-IP logic needs prefix awareness, not exact match.

Was this lesson helpful?

Sign in to rate

Keep reading

Related articles from the SudoSecurity blog.

What is a Web Server? Apache, Nginx, and How the Internet Delivers Web Pages

A web server accepts HTTP requests and returns responses. Apache has been doing this since 1995. Nginx rebuilt the model in 2004 and took over the cloud. Here's how they work, how they differ, and how to pick between them.

Article

How to Install NGINX on Debian & Ubuntu: Server Blocks, HTTPS and Reverse Proxy

When it comes to running a web server for all of my online projects, NGINX is the first that comes to mind for me. By default, it follows my guidelines of running a piece of software – meaning that the software is security-minded, performance-driven, and honestly, really easy to manage all the aspects of it. NGINX is most likely the most popular web server software in the world, and it's well known for being the backbone of some of the biggest sites on the internet to date. It is a lightweight

Article

Minecraft 26.4 Replaced Its Decade-Old Login Crypto. Here's What key-rotation-period-seconds Actually Does.

26.4 Snapshot 9 rewrote how a Java Edition client and server agree on an encryption key. RSA-1024 is out, X25519 is in, and a new key-rotation-period-seconds setting decides how often the server's key changes. I opened the snapshot server jar, timed the login crypto, and checked what changes for...

Article

The Same Researcher Broke apt the Same Way Twice, Seven Years Apart

In 2019 Max Justicz showed apt would install a package an attacker swapped in over a redirect. In November 2026 he did it again, CVE-2026-109518, through a different door that ends in the same place: code as root from a man in the middle. The fix shows how apt reuses files on disk.

Article