Skip to content

research: investigate Dots exit-node forwarding under platform egress restrictions #16

Open

Description

@abruption

Request

Investigate whether Dots can provide a usable Tailscale exit node under the platform's outbound network restrictions, and define the supported protocols and operating conditions before planning an implementation.

This is a research task, not a committed release feature. The existing live test verified advertisement and approval, but did not demonstrate working internet forwarding.

Context

The deployed installation uses Tailscale 1.102.4 in userspace networking mode without /dev/net/tun. During the 2026-10-15 live test, exit-route advertisement, admin approval, and client selection succeeded. HTTPS, public DNS/UDP, and ICMP probes through Dots failed; normal client HTTPS recovered after restoring the original route.

Dots could reach the tested HTTPS endpoint through the platform HTTP proxy but not through direct egress. Provider logs recorded netstack outbound connection failures and a UDP timeout; ping was also absent. These observations apply to the tested environment. TUN absence or disabled kernel forwarding alone does not establish that userspace exit nodes are unsupported.

The existing daemon transport shim carries Tailscale control/DERP traffic through the platform proxy. It does not automatically proxy arbitrary exit traffic. The proposed application outbound proxy in #18 is a separate feature and does not establish exit-node support.

Requested changes

  • Identify the available direct and proxy-mediated egress paths and their restrictions, separating observed behavior from unverified platform assumptions.
  • Evaluate whether a platform-compatible forwarding design is feasible without treating successful registration, tailnet ping, or SSH as internet-forwarding success.
  • Assess TCP/HTTPS, DNS/UDP, ICMP, and IPv6 separately; record unsupported or untested behavior explicitly. Installing ping alone must not be presented as fixing TCP/UDP egress.
  • Describe required privileges, dependencies, routing/approval changes, interruption risks, and rollback for any viable candidate. Preserve node state and SSH identity.
  • Start with isolated experiments; use explicitly scoped, bounded live checks for any candidate and restore client routing, route advertisements, and admin approval afterward.
  • Keep public evidence free of credentials and private infrastructure identifiers. Summarize the feasibility decision and user-facing limitations in English and Korean before presenting a candidate as supported.

Acceptance criteria

  • Record an end-to-end baseline that separates advertisement/approval/client selection from actual HTTPS, DNS/UDP, and ICMP forwarding.
  • Record provider-side errors and confirm the original client/provider/approval settings were restored after the baseline test.
  • Document the relevant egress constraints and explain the boundary between daemon transport, application proxying, and exit-node forwarding.
  • Produce a feasibility decision: viable, limited to specified protocols/conditions, or blocked in the tested environment, with supporting evidence.
  • For any viable design, record isolated tests and authorized end-to-end validation, including negative cases, exact deployed version/configuration, cleanup, and rollback. Otherwise document the blocking constraints and unrun tests.
  • Document the supported scope and remaining limitations without claiming general-purpose VPN/exit-node support from partial success.

Scope

Research into Dots acting as an exit-node provider only. This milestone does not commit the feature to a release or authorize unrelated platform changes. Using an existing exit node from Dots is a separate use case.

Exit-node implementation remains outside v0.3.0. Keep the CLI/doctor work in #17, the opt-in application proxy in #18, and the private HTTP API recipe in #19 independent of this investigation.

Existing validation

Preserved live test evidence — 2026-10-15 (KST)

Live test result — 2026-10-15 (KST)

Advertising and approval work, but the tested Dots installation did not provide working internet exit traffic. Selecting Dots as an exit node succeeded; HTTPS, public DNS/UDP, and ICMP probes through it failed. This is a result for the existing deployed environment, not a claim that Tailscale userspace exit nodes are unsupported in general.

Environment and scope

  • Existing Dots Tailscale 1.102.4, userspace networking (TUN: false), unprivileged user, no /dev/net/tun.
  • Kernel IPv4/IPv6 forwarding is disabled. Userspace exit nodes use netstack forwarding, so that alone does not establish the cause of failure.
  • No setup/shim source deployment, daemon replacement, authentication reset, ACL change, or sysctl change was made.
  • Client: the existing macOS Tailscale installation. It was briefly switched with a detached 25-second rollback watchdog and restored in a finally block. Dots advertisement had its own 10-minute fallback watchdog.

Results

Test Result
Dots set --advertise-exit-node=true Success; advertised 0.0.0.0/0 and ::/0
Admin approval Success; client saw ExitNodeOption: true and both default routes
Mac selects Dots Success; ExitNodeStatus.Online: true; public destination route used the Tailscale interface
Client baseline HTTPS without HTTP proxy Success
Client baseline direct DNS/UDP to 1.1.1.1:53 Success; matching response and two answers
Client HTTPS through Dots Failed: curl exit 28, connection timeout (4 seconds)
Client direct DNS/UDP through Dots Failed: timeout (3 seconds)
Client ICMP through Dots Failed: no response
Client HTTPS after restoring original route Success; same egress IP as baseline
Dots direct HTTPS without proxy Failed: curl exit 7, could not connect
Dots HTTPS through its existing HTTP proxy Success
Dots direct public DNS/UDP Failed: timeout

The HTTPS client probe resolved its destination before switching and used curl --resolve, so its failure was not merely an exit DNS lookup failure. HTTPS probes explicitly disabled HTTP proxies, preventing accidental proxy bypass of the exit-node path.

Provider-side evidence

The Dots tailscaled log recorded netstack outbound TCP connection failures (connect: connection refused), an external DNS/UDP session timeout, and:

exec ping ... failed: exec: "ping": executable file not found in $PATH
netstack: could not connect to local backend server at <public-destination>:443: dial tcp ...: connect: connection refused
netstack: UDP session ... to 1.1.1.1:53 timed out

These logs show that forwarded traffic reached the provider's netstack; advertisement/approval alone was not the only test. The missing ping executable is an additional limitation for userspace ICMP forwarding.

Interpretation

The current shim makes Tailscale's control/DERP transport compatible with the platform HTTP proxy. It does not automatically send arbitrary exit traffic through that proxy: userspace TCP/UDP forwarding opens outbound host sockets. The observed direct egress restrictions therefore remain relevant even though tailnet SSH works.

Official references:

Cleanup confirmed

  • Mac exit-node selection restored to none; original LAN-access and advertisement preferences preserved; normal HTTPS restored.
  • Dots AdvertiseRoutes restored to its original empty value; backend remained Running and tailnet SSH remained available.
  • Temporary admin exit-node approval removed.
  • Detached rollback watchdogs and temporary provider files removed.
  • No credentials or tailnet/internal addresses are included in this public evidence.

Follow-up scope

Do not advertise the current package as a working general-purpose Dots exit node based on registration success. Further work needs a platform-compatible egress design and separate TCP/UDP/ICMP testing; merely enabling kernel forwarding or installing ping would not fix the demonstrated HTTPS and UDP failures.

Activity

  1. changed the title [-]Investigate Dots as a Tailscale exit node in userspace mode[/-] [+]Dots exit node: advertising succeeds, internet forwarding fails in live tests[/+] on Oct 14, 2026
  2. added this to the Research milestone on Oct 15, 2026
  3. changed the title [-]Dots exit node: advertising succeeds, internet forwarding fails in live tests[/-] [+]research: investigate Dots exit-node forwarding under platform egress restrictions[/+] on Oct 15, 2026
  4. added
    priority: low
    on Oct 17, 2026
  5. abruption commented on Oct 17, 2026

    @abruption
    OwnerAuthor

    Priority update — 2026-10-18

    Priority: low, milestone Research. The existing live evidence already distinguishes successful advertisement/approval from failed public internet forwarding. Further provider work requires an egress design and protocol-specific evidence, so it follows the near-term lifecycle/recovery (#20) and outbound application-proxy (#18) investigations.

    The new observation that daemon-side dialing can resolve and reach a permitted tailnet peer does not overturn the public egress failures in this issue. Keep the feasibility investigation open; no general-purpose exit-node support is claimed.

  6. modified the milestones: v0.5.0, v0.6.0 on Oct 19, 2026
  7. added
    research
    on Oct 19, 2026
  8. abruption commented on Oct 22, 2026

    @abruption
    OwnerAuthor

    Additional research and bounded live probes — 2026-10-22

    Preliminary result: an explicitly configured HTTPS/DNS proxy is plausible, but transparent general-purpose exit-node forwarding remains unproven and encounters a demonstrated TLS trust boundary. No exit routes, node registration, daemon configuration, ACLs, or client routing were changed during this round.

    Current environment and measurements

    The existing provider remains Tailscale 1.102.4, userspace mode, UID 1000, without /dev/net/tun. Tests ran through strict SSH in the existing provider environment; these are provider egress probes, not an exit-node end-to-end test or a direct-Bash namespace test.

    Probe Result
    Direct HTTPS to example.com curl 7, connection failed
    Direct IPv6 HTTPS to example.com curl 7, connection failed; does not independently isolate IPv6 DNS/routing/firewall cause
    Platform proxy CONNECT hostname:443 + verified TLS HTTP 200, CONNECT 200, TLS verification successful with Dots default trust
    Platform proxy CONNECT resolved IPv4:443, original hostname retained for TLS SNI HTTP 200, CONNECT 200, TLS verification successful with Dots default trust
    Direct DNS/UDP to public resolver 3-second timeout
    DNS-over-HTTPS through platform proxy HTTP 200; decoded DNS response matched request ID, QR set, RCODE 0, one question and two answers
    TLS identity through proxy example.com leaf issued by platform CA, rather than an ordinary publicly trusted origin chain
    Mac public CA bundle, direct HTTPS baseline HTTP 200, TLS verification successful
    Same public CA bundle in Dots through platform proxy, isolated CA directory curl 60, self-signed certificate in certificate chain, verification result 19

    No certificate verification was disabled. The public CA bundle was temporarily copied solely for the trust comparison and removed afterward. No private key or authentication state was copied. The successful DoH response proves only this DNS-over-HTTPS query; it does not prove general UDP, QUIC, DNS interception, or exit routing. A single permitted HTTPS destination does not establish arbitrary host/port support.

    Alternatives evaluated

    1. TCP forwarding through HTTP CONNECT: the IP CONNECT probe is encouraging because exit packets carry destination IPs. However, the platform terminates TLS. Existing clients do not automatically trust that CA, and certificate-pinned applications remain a separate limitation. Installing a CA broadly or disabling verification is not proposed as an automatic fix.
    2. DNS-to-DoH adapter: feasible candidate for narrowly scoped DNS handling. It needs a bounded parser, query/response matching, timeout and size limits, and an explicit DNS-routing design. It does not provide arbitrary UDP forwarding.
    3. Separate tsnet research node with a narrow destination route: RegisterFallbackTCPHandler can support a small TCP-to-CONNECT experiment without replacing the production daemon. Use a separate identity and a narrowly approved test /32, never copy the production node state. First define the client's explicit trust model; otherwise the known certificate failure makes a broad exit-route trial premature. Registration and route approval are separate deployment steps, not performed here.
    4. Production netstack dialer patch: a larger maintenance burden. v1.102.4 forwards TCP via net.Dialer.DialContext; HTTP_PROXY alone does not redirect that path. A custom connection must preserve LocalAddr assumptions, cancellation and half-close behavior. Public exit flows must be distinguished from local/tailnet flows. UDP follows a separate path.
    5. Existing transport shim: not a transparent arbitrary exit proxy. It terminates TLS and rewrites selected transport upgrades; feeding ordinary exit traffic through it does not solve trust or general protocol compatibility.
    6. Remote relay on another server: can provide an independently controlled internet egress, but the final exit IP/location becomes that server's. It should be described as a relay design, not evidence that Dots can provide its own general internet exit. No relay deployed.
    7. proxychains/LD_PRELOAD: low priority; libc interception is not a reliable way to redirect Go netstack dialing, and it does not solve UDP/TLS trust. No preload or daemon restart attempted.

    Feasibility and next gate

    • Limited candidate: explicitly configured HTTPS and DNS-over-HTTPS proxying for clients with an agreed trust model.
    • Not established: transparent, general-purpose TCP/UDP/ICMP/IPv6 exit-node service.
    • Before a separate tsnet prototype: define whether platform-terminated TLS is acceptable for the intended client; constrain destinations and ports; specify node/route cleanup and source version; then validate one narrow TCP flow, negative trust case, timeouts and cleanup. Do not enable a default exit route simply because IP CONNECT succeeded.
    • Further port/protocol and IPv6 proxy tests remain unrun. No claim is made that installing ping or enabling kernel forwarding fixes the measured restrictions.

    한국어 요약

    IP 주소를 대상으로 플랫폼 프록시에 CONNECT를 보내고 원래 도메인으로 TLS를 연결하는 실험은 성공했습니다. DNS-over-HTTPS도 실제 DNS 응답까지 확인했습니다. 다만 플랫폼이 TLS 인증서를 중간에서 발급하며, Mac에서 정상 접속되는 공개 CA 묶음을 적용하면 인증서 검증이 실패했습니다. 따라서 일반 기기가 그대로 사용할 수 있는 exit node로 보기는 어렵습니다. 신뢰 조건을 명확히 한 HTTPS/DNS 한정 프록시와 별도 tsnet 연구 노드를 후속 후보로 남깁니다. 기존 연결·노드·라우팅은 유지했습니다.

    Sources

    The milestone remains v0.6.0 research; these probes do not establish production support.

  9. abruption commented on Oct 22, 2026

    @abruption
    OwnerAuthor

    Narrow tsnet routed trial completed — 2026-10-22

    A real client → Tailscale → separate Dots research node → platform CONNECT proxy → HTTPS destination flow succeeded, provided the client explicitly trusted the platform CA. Public CA trust alone failed as predicted. This is a narrow routed TCP/443 proof, not general-purpose exit-node support.

    Setup and controls

    • Custom Linux amd64 tsnet executable pinned to tailscale.com v1.102.4 (admin UI showed a development build suffix), separate ephemeral identity/state. No production state or keys were copied.
    • One approved public destination /32, exact destination TCP/443 fallback, four concurrent flows maximum, 20-second flow deadlines and 15-minute maximum lifetime. No default route advertised/selected.
    • Existing production shim was used for control/DERP only; forwarded TLS bytes used the platform CONNECT proxy directly.
    • Client Tailscale status identified the research node as primary for the /32, and OS routing selected the Tailscale interface.
    • curl disabled HTTP proxies, fixed the same example.com destination with --resolve, and used explicit CA bundles. Platform public CA certificates were scoped to the test command; system trust was unchanged. No TLS verification bypass or authenticated application traffic.

    Observed results

    Case Result
    Direct client baseline, public CA HTTP 200, TLS verification 0
    Routed HTTPS, public CA only curl 60, TLS verification 19
    Routed HTTPS, explicit platform CA HTTP 200, verification 0, expected Example Domain response content
    Routed TCP/80, outside allowlist curl 7; provider recorded flow_rejected_destination
    Provider evidence Two CONNECT establishment events matching the two TLS comparisons
    Cleanup baseline Physical-interface route restored; same HTTPS request/public CA succeeded

    Requests ran at 09:58:41–09:58:42 UTC. The research process stopped at 09:59:20 UTC and reported successful route withdrawal. Route approval was revoked, the node removed, and research state/runtime deleted. Fresh strict SSH and Tailscale ping to the production installation remained successful.

    Interpretation

    Conditionally viable for explicit-trust, bounded HTTPS forwarding. This does not establish transparent origin TLS, certificate-pinned applications, arbitrary TCP/ports, HTTP/2, DNS through this node, UDP/QUIC, IPv6, ICMP or long-running operation. UDP has no listener and is dropped by tsnet; ICMP has a separate userspace path and was not tested. The live experiment did not stress-test capacity or expiry.

    The next product decision is whether an opt-in application proxy is useful enough to justify its explicit trust setup, or whether a custom routed forwarder is worth maintaining. Broad exit routes or automatic trust-root installation are not warranted by this evidence. A remote relay remains a different architecture with a different final egress location.

    한국어: 실제 Mac의 단일 목적지 Tailscale 경로를 통해 Dots를 거쳐 HTTPS 본문을 받았습니다. 다만 시험 명령에서 플랫폼 CA를 신뢰해야 했으며, 일반 공개 CA만으로는 실패했습니다. 제한된 HTTPS 전달은 가능한 것으로 진전됐지만, 일반 exit node 지원으로 확대 해석하지 않습니다. 시험 설정은 모두 정리했습니다.

    Reproducible source, helper tests and sanitized evidence are retained in the isolated local research/exit16-connect branch; no production deployment, release or PR was made. Helper tests passed for destination restrictions, CONNECT rejection/header size and tunnel-byte preservation. Executable SHA256: 0d92ac41686b68c5ba88c9692a7e6081484af1b8d1dffbbf2dae4d314fe1913d.

  10. modified the milestones: v0.6.0, Research on Oct 26, 2026
  11. abruption commented on Oct 26, 2026

    @abruption
    OwnerAuthor

    v0.6.0은 #49/#51 범위로 준비합니다. exit-node 실현 가능성 조사는 Research 마일스톤으로 분리합니다. 일반 목적 exit-node 지원이나 출시 일정을 약속하지 않으며 기존 실패/부분 검증 기록은 유지합니다.

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

    priority: lowresearch

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions