NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Sandshark
Oct 30, 2016Sensei - Experienced User
ZeroTier and the ReadyNAS
NASTools mentions in the Apps sub-forum that he is looking into an app for ZeroTier. I started a small tangent discussion and thought it better to move it to its own thread.
I. too, have been looking into ZeroTier, and I think it has great potential on the ReadyNAS. For those open to SSHing in, it's an easy install in OS6.6.0. But everything has to be done via SSH and the ZeroTier CLI, so it's not for everyone (yet). If NASTools does get an app with a GUI, then all aboard. I suppose ShellInABox could also be used, since it gives SSH access -- I have never tried it.
I have installed ZeroTier One (the official name of the application) on OS6.6.0 running on legacy x86 devices. With OS6.6 now being based on Debian 8 (aka jessie), it should also install on ARM devices using the standard method, according to their documentation. But I do not have an ARM device on which to try it. Anyone wishing to risk the possibility of needing to factory default if it does not work right is invited to give it a try (see instructions below) and let us know in a reply if it works.
So, "What is ZeroTier?", you ask. The best desctiption I have seen is that is it a "mesh VPN". That is, it is a VPN that runs in conjunction with your normal NAT, not instead or in the middle of it. Instead of routing everything over the VPN, as is the typical VPN implementation (though it can be made to do so), it sets up one or more parallel networks that you can access through ZeroTier. You can find more information at https://www.zerotier.com/.
I have installed it on two ReadyNASes, a PC, and my Android phone. I can now directly access the NASes (including the admin page) from my PC or phone when away from home as if I were on the same LAN (though my phone's resolution and the OS6 user interface don't work well together). I can map drives on my PC. I can create a backup job between NASes, even if they are in physically different locations. No need for Rsync over SSH, ReadyCloud or ReadyNAS Replicate. Just a standard backup process using the other NAS's ZeroTier IP address instead of it's normal one. For me, this is huge. It's a lot like ReadyNAS Remote and then some. Like the ReadyNAS apps, it does use an external server to establish the route between devices, but it does not route all traffic though that server. As a result, it's only bottleneck is the connection speeds of the devices There is an option to run your own server, though documentation is sparce (likely intentionally, as doing so is only for highly skilled users).
Because traffic takes the most direct route, including staying on your LAN if appropriate, this also means you can use the same Windows drive mappings no matter where you are. When both devices are on your LAN, speed does not suffer by being routed "around the world". But your internet traffic also doesn't suffer when you are on the road by being routed through your VPN gateway. Note that this could open a remote PC up as an attrack point on the LAN, so caution should be used by business users. Having the ZeroTier connection made automatically with stored credentials is probably not wise for many cases.
I was initially reluctant to install ZeroTier because it just used a script and I could not see what it was doing. But I downloaded and looked over the script and became convinced it would work. And work, it did. Just go here: https://www.zerotier.com/product-one.shtml and run the CURL command listed for the Linux install from an SSH session. I point to the page instead of duplicating the command in case it changes in the future. I did run an apt-get update first, because I think the system should be up to date before installing any "foreign" apps, but Netgear does not recommend doing the update, as it may create conflicts within the OS.
The script checks what version of Linux and what processor you are using, then installs the appropriate files. It installed fine on my x86 OS6.6.0 system. It should install on ARM 6.6.0 and may install on older X86 6.x, but I have not tried it. Instructions for installing on earlier ARM OS6 can be found here: https://www.andrewmunsell.com/blog/remote-access-to-readynas-zerotier-one/. If it were to run on OS4.x or 5.x, it would probably also need to be compiled and scripts manually installed as described on that page. If it works on OS4 and OS5, it would be the answer to the lack of ReadyNAS Remote and ReadyCloud compatibility on the same client machine. But even if it doesn't, ZeroTier, unlike ReadyCloud, is compatible with running ReadyNAS Remote on a PC, so you could have concurrent ways to access both old and new systems, though not between each other.
Once installed, it's just a mater of using the zerotier-cli command or Windows/Mac/Android/iOS GUI to join all devices to the same network and get an IP address on that network. ip addr show now now shows a new zto: interface and (if connected to a network), the IP address associated wih it. The interface and network connections survive a reboot, courtesy of startup scripts installed by the ZeroTier installer. It was not necessary for me to change any configuration on my router.
Note that uninstalling may be more difficult than installing, as there is no uninstall script. But you can leave it installed but disconnected form any networks and it should cause no problem.
Please share your installation experience, good or bad, especially if not on an OS6.6.0 or above X86 system.
13 Replies
Replies have been turned off for this discussion
- SandsharkSensei - Experienced User
OK, so NASTools has now created a package that includes a CLI, so no need for SSH any more. It is for 6.6.0 only at this point (maybe and higher, I'm not sure; it does check). If you want it, it's available here: https://github.com/NAStools/zerotierone/releases/tag/readynas%2F1.1.14-nt2.
If you installed the standard package via SSH, you have to stop and uninstall it first. And the configuration files are in a different location (/apps/nastools-zerotier-one/var/ instead of /var/lib/zerotier-one/), so you'll need to move them over unless you don't mind having a new device ID. Note that an apt-get --purge remove zerotier-one does not remove the configuration files.
I had hopes that this could be a way to connect to both older NASes and newer ones, and even the two to each other, since the older don't support ReadyCloud and the newer don't support ReadyNAS remote. It's not looking good. I found some info from somebody who tried to compile and install on a SPARC Duo, and it failed; and he appeared to know what he was doing. It seams Debian Etch is just too old. The old SPARC processor may not have the necessary horespower, anyway. I'm still hoping to do something with the Duo V2 and NV+ V2, since Debian Squeeze is newer (but, unfortunately, also now considered unsupported). This is a stretch for me, but I do have a system to try it on. But if anyone has more (which means any) experience compiling on the OS5 systems, your help would be greatly appreciated. For 64 bit Intel-based units running OS 4.2.x, the best bet is to upgrade to OS6.
But, ZeroTier should happily co-exist with the ReadyNAS Remote app, so using those two can give you connectivity to all machine types, though through different interfaces. Still better than having to choose between Remote and Cloud because Netgear didn't make them capable of co-existing. And Zerotier can also be used as a bridge, so that's a potential partial solution, though not well documented and requiring a NAS with two ethernet ports.
- jaredbidlowAspirant
I don't find anything in this post to disagree with.
Just today I had some problems with the windows application though. But that is okay, as I can easily use my iPhone to access my media stack outside of my home network. Uninstall and reinstall of the windows app fixed the connection issues.
This was good to start a thread for zerotier as I'm a fan, but this problem exists:
I installed NAStools app on my RN102 (an arm device) but I can't access the gui. it asks for username and password, then it loads forever and never opens. so I have to resort to zerotier-cli with SSH enabled.
- SandsharkSensei - Experienced User
jaredbidlow wrote:I installed NAStools app on my RN102 (an arm device) but I can't access the gui. it asks for username and password, then it loads forever and never opens. so I have to resort to zerotier-cli with SSH enabled.
You might want to drop NASTools a PM letting him know. I only have Intel based devices (except old DuoV2), so there may be a problem with the ARM version. Sounds like maybe a permissions issue.
- kohdeeNETGEAR Expert
There are updated versions of ZeroTier at https://github.com/didyouexpectthat/zerotierone/releases, but no UI support. :)
- SandsharkSensei - Experienced User
Without the UI support, meaning you have to go to SSH to control it, you are better off installing it via SSH as well, since you then don't have to wait for the App to be updated after the base Linux install is updated.
Unfortunately, I don't think the person who did the update realized that there never was an official Linux UI. NASTools used the one from the Windows install. Maybe there is some reason that won't work any longer, but the new developer didn't mention it.
- kohdeeNETGEAR Expert
Sandshark wrote:NAStools actually used the macOS UI, not the Windows UI.
Not only did the dev put it in the release notes, he responded to you on NAStools' package explaining this.
From https://github.com/didyouexpectthat/zerotierone/releases/tag/readynas%2F1.2.4-nt1-RC1
The releases notes:There is no UI since ZeroTier no longer produces one in a format that is copyable. They currently produce an Objective-C one for Mac and a C++ one for Windows. Using this package currently requires you tot use SSH and running zerotier-cli commands. Notice: If you upgrade from NAStools's last package, you can manually stop and restart the App using the Admin Page and you will be on 1.2.4 and your previously joined networks will persist. I will try to work with ZeroTier on getting a Linux UI.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!