All apps · 0 apps
ZeroTier
Docker app from Spikhalskiy's Repository
Overview
Readme
View on GitHubZeroTier Docker for unRaid
Description
Zerotier is an open source, cross-platform and easy to setup and use virtual LAN / Hamachi alternative available on Android, iOS, Mac, Windows, Linux.
Usage
This Dockerfile is pushed to dockerhub.
Also, it can be deployed in unRaid using a template.
The template is also published in unRaid "Community Applications" store.
Support and bug reports
This docker has a support thread on unRaid forum. It also includes step-by-step setup instructions.
Setup
Network and the docker image setup steps:
- Create a https://my.zerotier.com/ account and create a Network there.
- Ensure that "Managed Routes" section of your network settings DOESN'T include the subnet of IPs that is used in your local networks. You can check FAQ at the end of the post for more information.
- Get an ID of the created network (looks something like b4da7454b271902c).
- Install this docker image on your unRaid using a template. or from Community Applications and put that ID as a NETWORK_ID parameter of the container. Start the container.
- Go to "Settings -> Network Settings -> Routing Table" and find the name of your zerotier gateway. It will have "zt*[0-9]" format, like "ztyouzqvq5".
- Go to "Settings -> Network Settings -> Interface Extra" and add zerotier gateway name to "Include listening interfaces".
- Go to https://my.zerotier.com/network/ and check “Auth” checkbox in “Members section” for the new device. Assign a meaningful name, copy an ip from "Managed IPs" column - it will be a static IP of your NAS in your virtual network.
- Install a Zerotier client to your laptop/phone/other devices, join a network with the same id and repeat the previous step for them.
- IP addresses that you found on the step 7 can be used to remotely access corresponding hosts from other devices connected to your virtual Zerotier network.
Now, when you connect Zerotier on any of your devices - a VPN connection will be set up and all connected devices will be available like they are in the same network. SMB shares/TimeMachine will be autodetected and available like you are in the same network, all UIs will be available on <ip from the step 4>:<usual port>.
Unraid 6.12+
If you would like to access local system services of Unraid (e.g. ssh or webgui) you must ensure the Zerotier interface is added as a listering interface. To do this go to Settings -> Network Settings in Unraid. Copy the interface name corresponding to Zerotier from the Routing Table. The interface usually has a prefix 'zt'. Afterwards paste the interface name into "Include listening interfaces" field under Interface Extra section, and hit apply.
Note: After a reboot you will need to manually re-apply the setting in order for this to take effect. I.e. copy/paste and hit apply. This is despite the interface appearing as included. It appears to be a bug on Unraid, last tested on Unraid version 6.12.6.
Kudos to user Vivent who originally reported this solution.
Install ZeroTier on Unraid in a few clicks.
Find ZeroTier in Community Apps on your Unraid server, review the template, and click Install. Unraid handles the Docker app or plugin setup from the published template.
Download Statistics
Total Downloads Over Time
Related apps
Explore more like this
Explore allLinks
Details
spikhalskiy/zerotierRuntime arguments
- Privileged
- true
- Extra Params
--device=/dev/net/tun --cap-add=NET_ADMIN --cap-add=SYS_ADMIN
Template configuration
Network ID of ZeroTier network to join, could be find on page: https://my.zerotier.com/network
- Target
- NETWORK_ID
Path to persist ZeroTier state across restarts of the container. If you don't bind this ZeroTier will generate a new identity every time.
- Target
- /var/lib/zerotier-one
- Default
- /mnt/user/appdata/zerotier/zerotier-one