home-tailscale
bash "$(ls -1dt /mnt/skills/*/home-tailscale ~/.claude/skills/synced/*/home-tailscale 2>/dev/null | head -1)/setup.sh"
Downloads Tailscale once (pinned SHA-256), joins as an ephemeral device and prints how to reach things. About
10 s cold; idempotent. It is ordinary tailscaled, so the usual tailscale commands work against its
socket, $HOME/.cache/home-tailscale/tailscaled.sock.
Modes
- Kernel (default, where the sandbox can create a TUN device, as in cloud Claude Code): a real
tailscale0, so any program reaches tailnet IPs and 172.16.0.0/16 natively, TCP and UDP. The sandbox's
NO_PROXY covers private ranges, but curl and friends still need HTTPS_PROXY unset for these hosts.
MagicDNS is off (resolv.conf is left alone): use 100.x addresses (status lists them).
- Userspace (
home-tailscale start --userspace, or automatically where there is no TUN): no interface,
a SOCKS5 proxy on 127.0.0.1:1055 and HTTP on :1056 instead. TCP only.
- Internet through his home (
home-tailscale start --exit): in kernel mode, native TCP on any port and
UDP to the internet, from his IP (unset HTTPS_PROXY for it); in userspace mode, through the proxy, TCP
only. home-tailscale start without --exit turns it off again.
home-tailscale routes lists the home ranges; home-tailscale stop leaves the tailnet.
Kernel-mode exit node: how it stays safe
An exit node routes every new connection into the tailnet, including the harness's and the egress proxy's
connections to Anthropic, which DERP itself rides on. If those get caught, egress, DERP and the session's
next inference call all die, and the platform restarts the worker within a minute. start --exit prevents
that, and needs no judgment from you:
- Before the exit node goes on, it adds
ip rule ... lookup main at priorities 100-199 (ahead of
tailscaled's 5210-5270) for 160.79.104.0/23 (Anthropic), every address the sandbox's processes hold
connections to, and the current addresses of Anthropic's hostnames. It never touches tailscaled's own
rules: tailscaled puts them back within seconds.
- Right after, it checks
ip route get for each of those addresses and that the egress proxy answers, and
rolls back with a reason if either fails.
- A background guard (the dead-man switch) re-checks the routes every 5 s, covers new connections of those
processes, probes the egress proxy every 15 s, and takes the exit node down at the first failure (2 s in
testing). Its log:
$HOME/.cache/home-tailscale/guard.log.
If you change routing by hand, keep the same rules: add rules ahead of tailscaled's rather than removing
its own, and arm a dead-man first. Side effects while it is on: anything else that opens a connection, such
as harness telemetry or an MCP server fetching packages, leaves from his home IP. A VM reboot drops
tailscaled, the rules and the guard together; run start --exit again.
His network
- The exit node and subnet router is a spare phone on his home Wi-Fi (
b1661v), which also advertises
172.16.0.0/16. It runs home-relay: Termux with sshd on
:8022 (key in the cfs store at /_devfiles/home-relay/secrets/admin_ed25519).
- The sandbox can't send UDP, so everything goes over DERP relays (WireGuard inside TLS on 443). The tailnet
has its own relay on that phone,
derp.home.louietyj.me (region 999).
- Speed: about 5 Mbps, whichever relay: userspace TCP on both ends over TCP. Fine for ssh, APIs and
control traffic; for bulk web traffic from his IP use home-proxy (about 30 Mbps).
- Through an exit node it is his real IP. Nothing that could get it flagged.
The auth key (reusable, ephemeral, expires 2027-02-04; Louie renews it in the Tailscale admin console under
Settings, Keys) comes from tailscale-authkey beside this file, $HOME_TAILSCALE_AUTHKEY, or the store at
/_devfiles/dot-claude/secrets/tailscale-authkey. If no exit node answers, the phone is off, off Wi-Fi, or its
"Run as exit node" toggle is off.
1---2name: home-tailscale3description: "Joins Louie's tailnet from this sandbox, giving native TCP and UDP (any port, any protocol, no proxy) to his tailnet devices and his home LAN (172.16.0.0/16, router at 172.16.0.1), and optionally to the internet from his home IP (any port, UDP included) through an exit node. Use it to reach a device or service at home or on the tailnet, to run something that needs raw TCP/UDP the egress proxy blocks, or to ssh into his machines. Slow (about 5 Mbps). For plain web traffic from his home IP, use home-proxy instead: it is faster and doesn't join the tailnet."4metadata:5 source: https://skillmd.com/skills/louietyj/home-tailscale6---78# home-tailscale910```bash11bash "$(ls -1dt /mnt/skills/*/home-tailscale ~/.claude/skills/synced/*/home-tailscale 2>/dev/null | head -1)/setup.sh"12```1314Downloads Tailscale once (pinned SHA-256), joins as an ephemeral device and prints how to reach things. About1510 s cold; idempotent. It is ordinary `tailscaled`, so the usual `tailscale` commands work against its16socket, `$HOME/.cache/home-tailscale/tailscaled.sock`.1718## Modes1920- **Kernel** (default, where the sandbox can create a TUN device, as in cloud Claude Code): a real21 `tailscale0`, so any program reaches tailnet IPs and `172.16.0.0/16` natively, TCP and UDP. The sandbox's22 `NO_PROXY` covers private ranges, but curl and friends still need `HTTPS_PROXY` unset for these hosts.23 MagicDNS is off (resolv.conf is left alone): use 100.x addresses (`status` lists them).24- **Userspace** (`home-tailscale start --userspace`, or automatically where there is no TUN): no interface,25 a SOCKS5 proxy on `127.0.0.1:1055` and HTTP on `:1056` instead. TCP only.26- **Internet through his home** (`home-tailscale start --exit`): in kernel mode, native TCP on any port and27 UDP to the internet, from his IP (unset `HTTPS_PROXY` for it); in userspace mode, through the proxy, TCP28 only. `home-tailscale start` without `--exit` turns it off again.2930`home-tailscale routes` lists the home ranges; `home-tailscale stop` leaves the tailnet.3132## Kernel-mode exit node: how it stays safe3334An exit node routes every new connection into the tailnet, including the harness's and the egress proxy's35connections to Anthropic, which DERP itself rides on. If those get caught, egress, DERP and the session's36next inference call all die, and the platform restarts the worker within a minute. `start --exit` prevents37that, and needs no judgment from you:3839- Before the exit node goes on, it adds `ip rule ... lookup main` at priorities 100-199 (ahead of40 tailscaled's 5210-5270) for `160.79.104.0/23` (Anthropic), every address the sandbox's processes hold41 connections to, and the current addresses of Anthropic's hostnames. It never touches tailscaled's own42 rules: tailscaled puts them back within seconds.43- Right after, it checks `ip route get` for each of those addresses and that the egress proxy answers, and44 rolls back with a reason if either fails.45- A background guard (the dead-man switch) re-checks the routes every 5 s, covers new connections of those46 processes, probes the egress proxy every 15 s, and takes the exit node down at the first failure (2 s in47 testing). Its log: `$HOME/.cache/home-tailscale/guard.log`.4849If you change routing by hand, keep the same rules: add rules ahead of tailscaled's rather than removing50its own, and arm a dead-man first. Side effects while it is on: anything else that opens a connection, such51as harness telemetry or an MCP server fetching packages, leaves from his home IP. A VM reboot drops52tailscaled, the rules and the guard together; run `start --exit` again.5354## His network5556- The exit node and subnet router is a spare phone on his home Wi-Fi (`b1661v`), which also advertises57 `172.16.0.0/16`. It runs [home-relay](https://github.com/louietyj/home-relay): Termux with sshd on58 `:8022` (key in the cfs store at `/_devfiles/home-relay/secrets/admin_ed25519`).59- The sandbox can't send UDP, so everything goes over DERP relays (WireGuard inside TLS on 443). The tailnet60 has its own relay on that phone, `derp.home.louietyj.me` (region 999).61- **Speed: about 5 Mbps**, whichever relay: userspace TCP on both ends over TCP. Fine for ssh, APIs and62 control traffic; for bulk web traffic from his IP use home-proxy (about 30 Mbps).63- **Through an exit node it is his real IP.** Nothing that could get it flagged.6465The auth key (reusable, ephemeral, expires 2027-02-04; Louie renews it in the Tailscale admin console under66Settings, Keys) comes from `tailscale-authkey` beside this file, `$HOME_TAILSCALE_AUTHKEY`, or the store at67`/_devfiles/dot-claude/secrets/tailscale-authkey`. If no exit node answers, the phone is off, off Wi-Fi, or its68"Run as exit node" toggle is off.