Skip to content

[Bug]: Bound Tailscale IPv6 endpoints are omitted from learned routes #34738

Closed as not planned

Description

@coygeek

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Use the checkout and dependencies below. Save the test in Relevant output or evidence as apps/server/src/environment/ipv6-route-repro.test.ts.
  2. From apps/server, run npx -y [email protected] exec vp test run src/environment/ipv6-route-repro.test.ts --reporter=verbose --silent=false.
  3. Observe that the valid Tailscale IPv6 address formats correctly for startup, but both explicit-bind and wildcard cases advertise an empty list.

The reduced probe was run once and passed all assertions about the current broken behavior. It uses synthetic network-interface data and real production modules. No live Tailscale daemon, full server bound to this example address, or client UI was exercised.

Expected behavior

A server bound to a supported Tailscale IPv6 address should report that tailnet endpoint for route learning. Remote architecture says a connected server reports the LAN and tailnet addresses it is bound to. The CLI host option accepts a Tailnet IP without restricting it to IPv4. The startup URL builder and shared host classification both accept this IPv6 fixture. Tailscale's IPv6 documentation identifies this prefix as its assigned IPv6 address space.

Restoration check

For the explicit-bind fixture, the advertised list includes a tailnet endpoint with http://[fd7a:115c:a1e0::1]:3773/; a wildcard bind includes it when present on the bound interfaces. Existing loopback and nonadvertisable-address exclusions remain effective. An integration check should verify that a client learns and can use this route.

Actual behavior

Observed in a focused test of the real modules: a bind to the example Tailscale address fd7a:115c:a1e0::1 produces startup URL http://[fd7a:115c:a1e0::1]:3773, and isTailnetHost recognizes it, but resolveBoundEndpoints returns []. An IPv6 wildcard bind with the same IPv6-only interface fixture also returns []. The route-learning consequence is source-only: DirectEndpoints.resolveAvailable passes that empty list to the server config, so clients cannot learn this address from directEndpoints.

Impact

Minor bug or occasional failure

Impact: P2 - Automatic discovery of a valid direct tailnet route is lost, requiring another route or explicit configuration of the IPv6 route.

Observed scope is endpoint generation for an explicit Tailscale IPv6 bind, plus an IPv6 wildcard bind with an IPv6-only interface fixture. This is an advertisement failure, not evidence that the HTTP listener rejects IPv6. NOT_ENOUGH_INFO: end-to-end client learning over a real tailnet was not run; a Tailscale-equipped host and client would establish that result. The documented Add route flow is a possible workaround, not a workaround exercised here.

Version or commit

main at c0c7405b04148f7fa3de5352d0e0aa149806c040; apps/server/package.json reports 0.1.9.

Environment

Linux 7.2.15-1-omarchy, x86_64; Node v26.13.1; pinned pnpm 12.14.0; Vite Plus test runner v5.0.5. Dependencies came from the checkout lockfile.

Logs or stack traces

Evidence provenance: observed module probe with synthetic interface data. Local verification: reproduced. Reproduction completeness: complete for endpoint generation; source-only for client integration. All example addresses are synthetic.

import { expect } from "vite-plus/test";
import { describe, it } from "vite-plus/test";
import { isTailnetHost } from "@t3tools/shared/hostClassification";
import { resolveBoundEndpoints } from "./DirectEndpoints.ts";
import { resolveHeadlessConnectionString } from "../startupAccess.ts";
const ipv6 = "fd7a:115c:a1e0::1";
const interfaces = { tailscale0: [{ address: ipv6, netmask: "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", family: "IPv6" as const, mac: "00:00:00:00:00:00", internal: false, cidr: `${ipv6}/128`, scopeid: 0 }] };
describe("agent D direct endpoint contract", () => {
  it("observes a supported Tailscale IPv6 URL but no advertised endpoint", () => {
    expect(isTailnetHost(ipv6)).toBe(true);
    expect(resolveHeadlessConnectionString(ipv6, 3773, {interfaces})).toBe(`http://[${ipv6}]:3773`);
    expect(resolveBoundEndpoints({platform:"linux", host:ipv6, port:3773, interfaces})).toEqual([]);
    expect(resolveBoundEndpoints({platform:"linux", host:"::", port:3773, interfaces})).toEqual([]);
    console.log("IPv6 startup URL", resolveHeadlessConnectionString(ipv6,3773,{interfaces}), "advertised", []);
  });
});

Observed output:

IPv6 startup URL http://[fd7a:115c:a1e0::1]:3773 advertised []
Test Files  2 passed (2)
Tests       2 passed (2)

Counts include an independent SSH-target probe run in the same invocation; the IPv6 test passed both empty-list assertions. DirectEndpoints.ts filters explicit binds through NodeNet.isIPv4 and wildcard interfaces through family === "IPv4". Config loading reports the result as directEndpoints; client route learning merges the endpoints the server reports.

Interface

API: ServerConfig.directEndpoints, consumed by client connection route learning.

Earliest failure stage

Output or presentation

Analysis

Source: both resolver paths exclude IPv6 before building endpoints, even though IPv6 identifies the Tailscale interface. The startup-URL and host-classifier controls rule out malformed input as the reason for omission.

References and duplicate search

searched open and closed issues for IPv6 advertised routes, DirectEndpoints, and Tailscale IPv6; no exact duplicate found. Issue #26450 concerns rejection of numeric IPv4 peer-link addresses, a different contract.

Workaround

No workaround was exercised in this investigation. See Impact for the documented alternatives and verification limits.

Activity

  1. added
    vouch:denounced
    on Nov 13, 2026
  2. maria-rcks commented on Nov 15, 2026

    @maria-rcks
    Collaborator

    Note

    Written by claude-fable-5-2 on behalf of Maria

    Closing: this account is denounced in .github/VOUCHED.td for filing automated issues faster than maintainers can triage them. A fix PR that links this issue is not affected by this close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    vouch:denounced

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions