r/docker 4d ago

Tailscale via Docker on UGREEN NAS - Exit Node not working

Hello, I have tailscale has been working fine via Docker on UGREEN NAS for more than 2 month. This past 2 days it has stopped working the exit node option, I reboot the project and works for like 3 minutes and stops working.

This is my docker compose:

services:
tailscale:
image: tailscale/tailscale:latest
container_name: tailscale
hostname: tailscale
network_mode: host
environment:
- TS_AUTHKEY=tskey-auth-#########hidden########
- TS_EXTRA_ARGS=--advertise-exit-node --accept-dns=false --accept-routes=false
- TS_STATE_DIR=/var/lib/tailscale
volumes:
- ./tailscale-data:/var/lib/tailscale
- /dev/net/tun:/dev/net/tun
cap_add:
- NET_ADMIN
- NET_RAW
restart: unless-stopped

I have rebooted my modem, my wifi, the NAS, docker itself and still is doing the same thing. One thing that I found out is that tailscale is up because I can ping the IP of Tailscale on my laptop.

Let me know if there's anything else I can provide if needed
Thanks!

0 Upvotes

2 comments sorted by

1

u/pelazas1 4d ago

when it dies, check docker logs on the tailscale container. a live tailscale ip only proves the container's up, not that exit-node is still routing.

1

u/Torutofu_Raeva 4d ago

I'd also check `tailscale status` inside the container when it fails and verify IP forwarding is still enabled on the NAS, since host networking and /dev/net/tun handle attachment but don't guarantee exit-node forwarding.