Skip to content

Instantly share code, notes, and snippets.

@dannypv05261
dannypv05261 / README-sing-box-tailscale.MD
Last active February 23, 2026 12:45
bare-metal sing-box script in Debian / sing-box config with tailscale exit node inbound / tailscale mullvad VPN add-on or exit node as outbound / retrieve tailscale DNS servers

Use case:

sing-box is the edge between tailscale network and home LAN network

  1. In tailscale client app (mobile / PC), you can connect to sing-box gateway exit node to chat with AI, unlock Pixel phone full features in some special places (haha), access home network, etc
  2. In home network, you can use sing-box as gateway by any means to chat with AI, access devices in tailscale networks that is visible by sing-box-gateway

Route:

  • Every public DNS query in route -> be resolved by VPN DNS server via tunnel
  • AI / IDE traffic -> route via VPN tunnel (haha)
  • home network domain/traffic -> route to home router
  • tailscale MagicDNS domain/ tailscale traffic -> tailscale