Skip to content

Instantly share code, notes, and snippets.

@Gerifield
Forked from regulad/.env
Created October 30, 2023 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gerifield/b0e0f5913a8f4ca86b607857e26c5182 to your computer and use it in GitHub Desktop.
Save Gerifield/b0e0f5913a8f4ca86b607857e26c5182 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment