Skip to content

Instantly share code, notes, and snippets.

@regulad
Created June 18, 2023 21:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save regulad/9a4872b14bc6313462445122fd886551 to your computer and use it in GitHub Desktop.
Save regulad/9a4872b14bc6313462445122fd886551 to your computer and use it in GitHub Desktop.
SOCKS5 Proxy using Tailscale Exit Node
TS_AUTHKEY=ts-auth-yattayatta
version: "3.9"
services:
dingus-cloud:
image: tailscale/tailscale:stable
privileged: true
ports:
- "1055:1055/tcp"
- "1055:1055/udp"
environment:
TS_AUTHKEY: "${TS_AUTHKEY}"
TS_SOCKS5_SERVER: ":1055"
# TS_OUTBOUND_HTTP_PROXY_LISTEN: ":${TS_HTTP_PORT}"
TS_EXTRA_ARGS: "--exit-node=100.70.93.127 --exit-node-allow-lan-access --shields-up"
volumes:
- "/dev/net/tun:/dev/net/tun"
cap_add:
- NET_ADMIN
- SYS_MODULE
- NET_RAW
tmpfs:
- /tmp
restart: unless-stopped
dingus-server:
image: tailscale/tailscale:stable
privileged: true
ports:
- "1056:1055/tcp"
- "1056:1055/udp"
environment:
TS_AUTHKEY: "${TS_AUTHKEY}"
TS_SOCKS5_SERVER: ":1055"
# TS_OUTBOUND_HTTP_PROXY_LISTEN: ":${TS_HTTP_PORT}"
TS_EXTRA_ARGS: "--exit-node=100.70.168.22 --exit-node-allow-lan-access --shields-up"
volumes:
- "/dev/net/tun:/dev/net/tun"
cap_add:
- NET_ADMIN
- SYS_MODULE
- NET_RAW
tmpfs:
- /tmp
restart: unless-stopped
cloud2:
image: tailscale/tailscale:stable
privileged: true
ports:
- "1057:1055/tcp"
- "1057:1055/udp"
environment:
TS_AUTHKEY: "${TS_AUTHKEY}"
TS_SOCKS5_SERVER: ":1055"
# TS_OUTBOUND_HTTP_PROXY_LISTEN: ":${TS_HTTP_PORT}"
TS_EXTRA_ARGS: "--exit-node=100.64.91.73 --exit-node-allow-lan-access --shields-up"
volumes:
- "/dev/net/tun:/dev/net/tun"
cap_add:
- NET_ADMIN
- SYS_MODULE
- NET_RAW
tmpfs:
- /tmp
restart: unless-stopped
networks:
default:
driver_opts:
com.docker.network.driver.mtu: 1280 # tailscale/tailscale#3877
@DaneHou
Copy link

DaneHou commented Mar 10, 2024

Thanks! This helps a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment