[ ZeroTier ] Securely connect any device, anywhere

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

[ ZeroTier ] Securely connect any device, anywhere

Post by outkastm »

Image

About: https://www.zerotier.com/

Category: Utility
Applicable models: x.64 series, armv8 series
Applicable TOS4: 4.1.27 or later versions
Applicable TOS5: 5.0.129 or later versions
App download: https://tmnascommunity.eu/download/zerotier

Module WebUI for additional settings can be accesses at

http(s)://yournasip:port/modules/ZeroTier/www

How to manully install this app on TerraMaster application store?

About

Connect team members from anywhere in the world on any device.
ZeroTier creates secure networks between on-premise, cloud, desktop, and mobile devices.

ZeroTier combines the capabilities of VPN and SD-WAN, simplifying network management.
Enjoy flexibility while avoiding costly hardware vendor lock in.
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ ZeroTier ][ 1.8.3.0 ] Securely connect any device, anywhere

Post by outkastm »

added initial version
User avatar
MooieBoot
Posts: 33
Joined: 24 Nov 2021, 05:29

Re: [ ZeroTier ][ 1.8.3.0 ] Securely connect any device, anywhere

Post by MooieBoot »

Hi, thanks for your effort!

Using the web module page, I'm unable to start the service, also though commandline I can't start the service:

sudo service zerotier-one start
>zerotier-one not exists

Without the service starting, I'm unable to start zerotier and daemonize it:

sudo zerotier-one -d
> zerotier-one: fatal error: authtoken.secret could not be written

Without zerotier-one started I'm unable to join any networks:

sudo zerotier-cli join xxxxxxxxxxx
> zerotier-cli: missing port and zerotier-one.port not found in /var/lib/zerotier-one

Is is possible to integrate zerotier-one as a service on TOS?
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ ZeroTier ][ 1.8.3.0 ] Securely connect any device, anywhere

Post by outkastm »

dowload again the app, i made some changes.

The daemon start automatically and it create your address, you can check this in the WebUI

Image

From CLI you just need to login the network if you want

Code: Select all

[administrator@TNAS-xxx ~]$ sudo zerotier-cli join xxxxxxxxxxxxxxxx
Password:
200 join OK
User avatar
MooieBoot
Posts: 33
Joined: 24 Nov 2021, 05:29

Re: [ ZeroTier ][ 1.8.3.0 ] Securely connect any device, anywhere

Post by MooieBoot »

Hi, thanks for the update!

A reboot of the NAS is needed after installation for the service to start/initalize.
A LAN connection is set to "Use as default Gateway" to retain internet connection

However it doesn't seem to work. ZeroTier gets an ipv6 address when I check through cli (ifconfig) and not an ipv4 (which I manually assigned it thourh zerotier), will try to see if I can fix and report back here.
User avatar
MooieBoot
Posts: 33
Joined: 24 Nov 2021, 05:29

Re: [ ZeroTier ][ 1.8.3.0 ] Securely connect any device, anywhere

Post by MooieBoot »

After joining through CLI, the service needs to be stopped and started through the app icon.
Now TOS is accesable through the provied ipv4 address from zerotier
Also make sure you disable "Allow Telnet / SSH only within the local network" if you would like to access your TNAS through SSH and zerotier.

Many thanks for your hard work @outkastm !
User avatar
MooieBoot
Posts: 33
Joined: 24 Nov 2021, 05:29

Re: [ ZeroTier ][ 1.8.3.0 ] Securely connect any device, anywhere

Post by MooieBoot »

After a reboot, the interface is completely gone (using ifconfig to check) so no IP can't be assigned anymore.
User avatar
MooieBoot
Posts: 33
Joined: 24 Nov 2021, 05:29

Re: [ ZeroTier ][ 1.8.3.0 ] Securely connect any device, anywhere

Post by MooieBoot »

After a reboot, package needs to be removed and reinstalled, reconfigured and then it's working again.
This is not practical, can you adjust the startup script?
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ ZeroTier ][ 1.8.3.0 ] Securely connect any device, anywhere

Post by outkastm »

Will have a look, I didn't test it with reboot.
The config are saved on the default path /var/lib/ZeroTier-one but maybe the TOS is reseting this folder on reboot.
I will adapt it to save the files on /mnt/appdata/MOD_CONFIG/ZeroTier
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: [ ZeroTier ][ 1.8.3.1 ] Securely connect any device, anywhere

Post by outkastm »

up to 1.8.3.1

fixed the issue that the config is deleted after NAS is rebooted
Post Reply