Back to Engineering Blog
Engineering Field Notes 3 min read

Our IPv6 Uplink Doesn't Exist, but Every Host Kept Preferring It

A threat-intel update hung against a timeout on an IPv6 address. The fleet has no working IPv6 uplink, yet hosts auto-configured an address and default route from router advertisements and preferred them. We turned off RA and SLAAC fleet-wide instead of disabling IPv6 and breaking Tailscale.

Jason NevillBy , Houston, TX
#IPv6#Linux#Ansible#Tailscale

Key Architectural Takeaways

  • Hosts that accept router advertisements without a working IPv6 uplink will prefer a dead path.
  • Disable RA and SLAAC, not the whole IPv6 stack, when Tailscale is in use; full disable has documented breakages.
  • Add a toggle so a future host that needs IPv6 can opt out without editing the play.

The symptom

A central threat-intelligence host's hub update hung and failed with dial tcp [IPv6 address]:443: i/o timeout against the vendor's version endpoint. Checked live: curl -4 to the same URL returned 200 instantly, curl -6 timed out completely.

Root cause

The fleet has no real, working IPv6 uplink anywhere. Hosts still auto-configure a global IPv6 address and default route from router advertisements, and the resolver and glibc prefer IPv6 when a record is available. So a dual-stack hostname resolved to an AAAA record, the host tried the broken IPv6 path first, and the connection sat until the timeout.

Two ways to fix it, and the one we chose

The owner's decision was a single fleet-wide baseline change, not stripping AAAA records at the edge DNS resolver. The change in the baseline playbook:

  • Disable IPv6 router-advertisement processing and SLAAC: net.ipv6.conf.{all,default}.{accept_ra,autoconf} = 0, persisted in a dedicated sysctl file and applied live.
  • A defence-in-depth gai.conf precedence entry, so glibc's getaddrinfo() ordering also prefers IPv4 for tools that honour it.
  • A fleet-wide toggle, homelab_disable_ipv6_autoconf, defaulting to true, so a host that genuinely needs IPv6 can opt out through a variable.

What we deliberately did not do

We did not fully disable the IPv6 stack with disable_ipv6=1. Research found documented Tailscale breakages (MagicDNS, subnet routing, exit nodes) when IPv6 is disabled at the kernel level, and every baseline-hardened host runs Tailscale. Turning off RA and SLAAC stops hosts from ever acquiring the bad address and route while leaving the stack on. Tailscale assigns its own interface addresses directly through netlink, not through RA, so it is unaffected.

What we could not verify

The change was written in an isolated worktree with no live fleet access. It was syntax-checked as YAML only and not run against any live host, which the pull request said plainly.

Takeaway

A missing capability is not the same as a disabled one. If your network has no IPv6, tell your hosts not to go looking for it, and do it in one place.

Follow the build on LinkedIn or by RSS.

All Articles

Follow the build

Questions about the build, or spotted something we got wrong? Find us on LinkedIn and GitHub.