Create Tailscale Auth Key:
- Access: https://login.tailscale.com/admin/settings/keys
- Auth keys -> Generate auth key
- Save this key to bind env
TAILSCALE_AUTHKEY
git clone https://github.com/hypnguyen1209/tailscale-socks5
cd tailscale-socks5
docker build -t hypnguyen1209/tailscale-socks5 .
Run with TAILSCALE_AUTHKEY
docker run -p 10800:1080 --env TAILSCALE_AUTHKEY=tskey-auth-xxx hypnguyen1209/tailscale-socks5
Test:
# curl to device in your tailnet. Example 100.78.16.70:8000/http
curl 100.83.134.154:8000 --proxy socks5h://127.0.0.1:10800