Repository navigation
Description
Request
Add an opt-in localhost SOCKS5/HTTP outbound proxy so explicitly selected processes in Dots can reach permitted tailnet services through userspace Tailscale networking.
Context
The reviewed main baseline (643484) does not configure an outbound SOCKS5/HTTP listener. The existing listener on port 18089 is the daemon transport shim for control/DERP connectivity through the platform proxy; it is not the proposed application outbound proxy.
This is a proposed v0.3.0 enhancement. Application-proxy connectivity has not been implemented or validated by filing this issue.
Requested changes
- Keep outbound proxy support disabled by default. Require an explicit opt-in.
- Bind listeners to
127.0.0.1only, use configurable ports, and detect invalid values, duplicate ports, and conflicts before disrupting the current daemon. - Keep application outbound listeners distinct from the existing daemon transport shim.
- Document explicit per-command or per-process proxy configuration, including appropriate proxy-side name resolution for tailnet destinations. Do not set global shell, browser, system, or application proxy defaults.
- Preserve the platform proxy configuration needed for daemon transport; do not accidentally create a proxy loop.
- Define safe enable/disable/restart behavior that preserves authentication state and existing access. Document interruption risks, verification, and rollback before any live restart.
- Explain that process opt-in is a configuration choice, not an access-control boundary: other local processes may reach a loopback listener. Tailnet grants and destination application authentication remain necessary.
- Include credential-free English and Korean examples and troubleshooting that distinguish listener health, tailnet connectivity, DNS, grant denial, and application failures.
Acceptance criteria
- Default installation creates no outbound SOCKS5/HTTP listener.
- Explicit enablement exposes only the configured loopback listeners, with invalid/conflicting ports rejected clearly.
- Isolated tests cover configuration, startup failure, repeated enable/disable, rollback, and absence of global proxy changes.
- An authorized live check verifies SOCKS5 and HTTP paths to a designated permitted tailnet service, including name resolution and negative cases.
- A successful daemon registration or open local port alone is not reported as application connectivity success.
- Live validation records the deployed version/configuration and verifies existing access after restart and rollback; tests not performed are identified.
- Documentation contains no credentials, private infrastructure identifiers, or claims of automatic propagation to MCP, plugins, or browsers.
Related work and scope
The CLI/doctor work in #17 should expose the proxy's configured state without treating a local listener as end-to-end success. A separate private HTTP API recipe can demonstrate explicit process opt-in after this feature is validated.
Serve, Aperture, NAS recipes, full-device VPN routing, and exit-node support are outside v0.3.0 scope. The exit-node evidence in #16 is separate and does not establish this outbound proxy feature.
Activity
abruption commentedon Oct 17, 2026
Research update — 2026-10-18
Priority: high, milestone v0.3.0. Resolve configuration persistence and restart behavior before implementing the application proxy.
Version-pinned source findings
Tailscale 1.102.4 exposes
--socks5-server=127.0.0.1:<PORT>and--outbound-http-proxy-listen=127.0.0.1:<PORT>. Listener creation occurs during daemon startup, so editing configuration or rerunning a start wrapper that reuses a healthy daemon does not activate the listeners. A configuration change must report that a restart is required until it is applied.Upstream intentionally supports SOCKS5 and HTTP on the same exact nonzero address. If the first implementation requires separate ports, duplicate-port rejection is a project policy, not an upstream limitation. Shared-port mode would need explicit configuration and tests.
Both proxy paths use the daemon's UserDial/MagicDNS resolution. SOCKS examples should use
socks5h://; HTTP CONNECT should receive the destination hostname. Explicit--noproxy ''in a client probe prevents inherited NO_PROXY from accidentally bypassing the selected proxy.Sources: proxy listeners and multiplexing, startup wiring, daemon dialing and name resolution.
Live prerequisites checked
The current Dots daemon uses userspace networking and has neither outbound listener flag configured. Its binary advertises both flags in help output. In a bounded read-only test, the system resolver failed for a designated peer's short MagicDNS name and FQDN, while
tailscale ncobtained the peer's SSH greeting for both names. No authentication was attempted. This verifies a userspace TCP/name-resolution prerequisite; it is not a SOCKS5/HTTP proxy or API integration test.Proposed implementation decisions
Validation still required
Isolated tests: disabled default; each listener independently/both; malformed or symlinked config; port conflicts; repeated enable/disable; running-config drift; startup failure and rollback. Live tests: both proxy types with permitted IP/short-name/FQDN destinations, application/TLS failures and policy denial, followed by strict SSH and control/DERP checks. TCP success must not be extended to a UDP claim.
No listener was enabled and no production daemon was restarted in this research. #19 depends on successful application-proxy validation.
abruption commentedon Oct 19, 2026
Completed in PR #24 and published in v0.3.0. Offline CI and authorized live CLI/proxy/HTTPS/policy checks are documented in the PR. Remaining startup/context/version/update improvements are tracked separately in #25–#31; lifecycle research continues in #20. Retaining this issue in its shipped v0.3.0 milestone.