NAS Written
No more Synology package: use a container
ZeroTier stopped maintaining its native Synology package. TUN on DSM 7, folder, container, joining, authorizing and upgrading, plus gateway use.

The download page says it: native packages for Synology, QNAP, ASUSTOR and Western Digital are no longer maintained, and containers are the supported way. This follows the documentation, for DSM 7.
If the old package still works, no hurry. But some DSM update may stop it, usually while you are away. Change it on a weekend at home with a second way in ready.
Before you start
- Turn on SSH under Control Panel, Terminal & SNMP.
- Install Container Manager.
- Log in by SSH and run
sudo -i.
Give the system TUN
echo -e '#!/bin/sh -e \ninsmod /lib/modules/tun.ko' > /usr/local/etc/rc.d/tun.sh
chmod a+x /usr/local/etc/rc.d/tun.sh
/usr/local/etc/rc.d/tun.sh
ls /dev/net/tunThe last line should print /dev/net/tun.
Start the container
mkdir -p /volume1/docker/zerotier
docker run -d --name zt --restart=always --device=/dev/net/tun --net=host --cap-add=NET_ADMIN --cap-add=SYS_ADMIN -v /volume1/docker/zerotier:/var/lib/zerotier-one zerotier/zerotier-synology:latestThe official example keeps the identity in a system folder and warns that DSM updates may lose it, so here it is on a volume.
Join
docker exec -it zt zerotier-cli join NETWORK_ID
docker exec -it zt zerotier-cli listnetworksAuthorize it in the console. ZeroTier advises against Synology's own window for this container.
| What you see | Do |
|---|---|
| The container keeps restarting | TUN is missing, run the script |
| No network after a DSM upgrade | Is tun.sh still there |
| Authorized but no ping | Allow the ZeroTier subnet in Synology's firewall |
- Stop and removethe folder stays
- Pull the new imagedocker pull
- Run it againsame command
- No new authorizationsame identity
Before
- Note its node and ZeroTier addresses.
- Copy
identity.publicandidentity.secretfrom the old folder to keep the identity. - Make sure LAN or QuickConnect works.
- Stop and remove the old package; both cannot run.
find / -name identity.secret 2>/dev/nullPut them in the new folder and the container uses them: same device, same address.
What you should see
| Step | See |
|---|---|
| tun.sh | Nothing, and /dev/net/tun exists |
| docker run | A long ID |
| docker ps | Up, not Restarting |
| zerotier-cli status | ONLINE |
| join | 200 join OK |
| listnetworks | OK and an address |
Stop at the first difference.
Errors
permission denied … Docker daemon: sudo -i missing. operation not permitted: a --cap-add or --device missing. no such device tun: tun.sh did not run after the restart; check rights 755 and the first line. Safer: Control Panel → Task Scheduler → triggered at boot, user root.
DSM or SMB do not open
- Firewall: allow the ZeroTier range.
- Auto block: is the address in it.
- QuickConnect names do not use ZeroTier.
- SMB:
\\zerotier-address\share.
Bring the whole home
Forwarding is lost at restart, so put it in the boot task:
sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -o eth0 -s 10.147.17.0/24 -j MASQUERADE
iptables -A FORWARD -i zt+ -j ACCEPT
iptables -A FORWARD -o zt+ -j ACCEPTThe NAS's own firewall may flush it; a router or Raspberry Pi does this with less care.
An old model without Docker?
DSM 6 can still use the old package; or run ZeroTier on a router or Raspberry Pi and reach the NAS through a gateway.
Slower in a container?
With host networking hardly; the NAS processor matters more.
With the graphical Container Manager?
Device and capabilities cannot all be set there; create by command, look there.
After a large DSM update?
tun.sh, the task, the container.
Other NAS?
The same idea: TUN, host network, two capabilities, a mounted folder.
Up next
WindowsThe Windows tray app vanishesIt vanishes on opening, Node ID says Unknown, the service cannot be reached. Old token, stopped service, IP Helper on port 9993, from GitHub and the docs.
macOSSuddenly offline on macOS 26On macOS 26 ZeroTier may add a default route to 127.0.0.1 and cut the internet. How to confirm, recover and avoid it, from GitHub issue 2520.
Pages nearby
- ZeroTier default route Mac
- best virtual LAN
- ZeroTier problems
- new ZeroTier Central
- ZeroTier Android
- ZeroTier Linux install
- ZeroTier Synology
- ZeroTier setup
- ZeroTier client
Marks: ZeroTier on Synology, DSM 7 ZeroTier, ZeroTier container Synology