[Support] spikhalskiy - ZeroTier


Recommended Posts

Quote

Why don't you use the official Zerotier image for the template? Does your image contain custom changes for Unraid?

Yes, it's a custom image.

First of all, it's on Alpine and it's much lighter. Zerotier official image moved to debian at some time, I took their image at that time and maintain myself:

https://github.com/Spikhalskiy/zerotier-containerized/blob/master/Dockerfile

Second, it has a custom starter script that wires parameters the right way:

https://github.com/Spikhalskiy/zerotier-unraid-docker/blob/master/Dockerfile

It doesn't have any changes to zerotier binaries and install them from the official sources.

It's all on github, suit yourself.

Edited by Dmitry Spikhalskiy
Link to comment
  • 3 weeks later...
  • 2 weeks later...
4 hours ago, Michael Kaaber said:

Hi Dmitry,

Do you have time to update to latest Version?

Regards

Michael

1.10.0? I will skip this one.

1. I see several issues in github that after an upgrade specifically to 1.10.0 users installations stopped working. I inclined to wait for at least first patch version. https://github.com/zerotier/ZeroTierOne/issues/1692 https://github.com/zerotier/ZeroTierOne/issues/1695

2. I'm not sure what's going on with 1.10.0. The latest code changes in zerotier github are for 1.8.10. There is neither Release Notes related to 1.10.0 (https://github.com/zerotier/ZeroTierOne/blob/master/RELEASE-NOTES.md), nor code changes between 1.8.10 - 1.10.0. I don't want to upgrade to some version that is stated just on their website and completely doesn't exist in the code repository. I guess it's ok if they suddenly went closed source, but it's not ok that I can't find any information or statement about it around at all.

Edited by Dmitry Spikhalskiy
Link to comment

I think I've figured out a solution. I'll create an update if I'm still getting issues.

 

First go into your ztncui appdata folder and create a file called supervisord.conf. Open it and paste in the contents of your container's "/etc/supervisord.conf" file. You can get the contents by: Opening the console, cd /etc/, cat supervisord.conf

 

Edit your appdata supervisord.conf once more and add a line to the [program:ztone] section that says 'autorestart=true'. This should in theory force ztone to restart whenever is exits expectedly(which I was getting) or unexpectedly.

 

Finally navigate to your container and add a new path:

Config Type: Path

Name: Supervisord.confg

Container Path: /etc/supervisord.conf

Host Path: /mnt/user/appdata/ztncui/supervisord.conf

 

Press apply and it should all boot fine. You can check the container has picked up your supervisord.conf file by doing what we did previously using cat inside the container console. It should show our new autorestart line.

 

Edit: A few days later after these changes ztone tried to exit and it auto restarted. Everything working normally as if nothing happened.

image.thumb.png.3f5b52e993f97f88a2f85cc18babc341.png

Edited by jimrummy101
Providing an update
Link to comment
  • 3 weeks later...

Adding more than one zerotier network. I would like to create two zerotier networks. One that only allows access to my Emby server e.g.192.166.10:8096 and another network that allows me to access the UNRAID dashboard i.e. 192.168.0.10:80.

 

I can see how to do this by creating two separate zerotier networks. Does your container allow me to specify more than one zerotier network? Suggestions for alternative methods welcomed!  

Link to comment
On 7/5/2022 at 8:43 AM, ianGB said:

I can see how to do this by creating two separate zerotier networks. Does your container allow me to specify more than one zerotier network? Suggestions for alternative methods welcomed!  

To answer my own question. It's simple: just add another network id in the Network ID field.

Link to comment
  • 2 weeks later...
6 hours ago, final said:

In unraid 6.10.2, the application cannot be registered in the zerotier network, can it be fixed?

This app/container works fine with Unraid 6.10.2 or 6.10.3, there is nothing to fix.

You have to debug your own environment. In the root post you can find steps that you should do to make a meaningful information about your issue. Somebody in this thread may help if you provide enough info.

Edited by Dmitry Spikhalskiy
Link to comment
  • 2 months later...
  • 1 month later...

Hey

I installed Zerotier on my unraid server and authorized it on my network. I can ping the server from another pc in the zerotier network. But I have no access to the Dashboard in the zt network or with smb to access my files. Do I need to change or add some settings in unraid to reach the Dashboard and files?

Link to comment
  • 2 weeks later...

Hi, for a few days my unraid no longer connects to the zerotier VPN or does it for a few minutes and then goes offline.

I have not made any changes to the server or to the router, I accidentally noticed it while trying to connect from outside the home.

I enclose some information, hoping it will be useful:

 

From the logs of the docker:

connect: Operation timed out
connect: Operation timed out
connect: Host is unreachable
connect: Host is unreachable
connect: Host is unreachable

 

/ # zerotier-cli info
200 info abcda***f8 1.10.2 OFFLINE

 

/ # zerotier-cli listnetworks
200 listnetworks <nwid> <name> <mac> <status> <type> <dev> <ZT assigned ips>
200 listnetworks a0cbf4b****1148 IlPixelMatto 4a:ba:63:**:ce:0c OK PRIVATE ztc3***j3c 192.168.191.12/24

 

/ # zerotier-cli listpeers
200 listpeers <ztaddr> <path> <latency> <version> <role>
200 listpeers 62f865**71 - -1 - PLANET
200 listpeers 778cde**90 - -1 - PLANET
200 listpeers cafe04**a9 - -1 - PLANET
200 listpeers cafe9e**b9 - -1 - PLANET

 

image.thumb.png.445a4d913e25fcaa4adc02881ecc6ea3.png

 

The router has automatically created:

 

image.png.6dd637781543d56a619099fda97264bd.png

 

image.thumb.png.d77a72ae1c96529efdfb873112b6a286.png

 

There are no changes on the zerotier website

 

image.png.18fc9467aaf4ad456c0821bd75aa4f8e.png

 

image.thumb.png.858a48212df5585d3ffb3ed308cdd28c.png

 

Anyone have any idea what may be causing the problem? My provider is fastweb which is under NAT.

 

Thanks!

Link to comment
On 11/11/2022 at 4:57 PM, Dmitry Spikhalskiy said:

@ilpixelmatto 4 days ago I upgraded the container from 1.8.2 to 1.10.2. If you want to check if that is what causes your instability, you may downgrade by specifying a tag "spikhalskiy/zerotier:1.8.2" and see how it behaves.

723041920_Screenshot2022-11-11at10_54_34AM.thumb.png.0bf167af26768e9c96d563a4339e88d2.png

I try with the "old" 1.8.2 but I have the same problem, I don't understand where is the problem, I don't have made any change in mounths.

 

But now the zerotier-cli info tell me this:

 

zerotier-cli info
zerotier-cli: /usr/lib/libstdc++.so.6: no version information available (required by zerotier-cli)
[...]
zerotier-cli: /usr/lib/libstdc++.so.6: no version information available (required by zerotier-cli)
200 info abcda278f8 1.8.2 TUNNELED (on my.zerotier is offline 1H 34M)

zerotier-cli listpeers
200 listpeers <ztaddr> <path> <latency> <version> <role>
200 listpeers 62f8***e71 - -1 - PLANET
200 listpeers 778***190 - -1 - PLANET
200 listpeers a0c***b62a - -1 1.10.2 LEAF
200 listpeers caf***eba9 - -1 - PLANET
200 listpeers caf***feb9 - -1 - PLANET
  
  
zerotier-cli listnetworks
200 listnetworks <nwid> <name> <mac> <status> <type> <dev> <ZT assigned ips>
200 listnetworks a0cbf4b6***1148 IlPixelMatto 4a:ba:63:**:ce:0c OK PRIVATE ztc***j3c fda0:cbf4:b62a:***:4899:93ab:***:***/88,192.168.191.12/24

 

image.png.122a7f079872a917e841a64ff4d87e21.png

 

I tried enabling ipv6 as well but nothing changed.
I've tried using another docker like "tailscale" VPN and it works fine so I'm assuming it's not the router blocking the connection. Also because I've been using zerotier in a virtual machine for more than a year and I've never had connection problems from that zerotier instance).

 

Thanks very much for your hard work. 🥰

Link to comment
On 11/15/2022 at 9:22 AM, ilpixelmatto said:

I try with the "old" 1.8.2 but I have the same problem, I don't understand where is the problem, I don't have made any change in mounths.

 

But now the zerotier-cli info tell me this:

 

zerotier-cli info
zerotier-cli: /usr/lib/libstdc++.so.6: no version information available (required by zerotier-cli)
[...]
zerotier-cli: /usr/lib/libstdc++.so.6: no version information available (required by zerotier-cli)
200 info abcda278f8 1.8.2 TUNNELED (on my.zerotier is offline 1H 34M)

zerotier-cli listpeers
200 listpeers <ztaddr> <path> <latency> <version> <role>
200 listpeers 62f8***e71 - -1 - PLANET
200 listpeers 778***190 - -1 - PLANET
200 listpeers a0c***b62a - -1 1.10.2 LEAF
200 listpeers caf***eba9 - -1 - PLANET
200 listpeers caf***feb9 - -1 - PLANET
  
  
zerotier-cli listnetworks
200 listnetworks <nwid> <name> <mac> <status> <type> <dev> <ZT assigned ips>
200 listnetworks a0cbf4b6***1148 IlPixelMatto 4a:ba:63:**:ce:0c OK PRIVATE ztc***j3c fda0:cbf4:b62a:***:4899:93ab:***:***/88,192.168.191.12/24

 

image.png.122a7f079872a917e841a64ff4d87e21.png

 

I tried enabling ipv6 as well but nothing changed.
I've tried using another docker like "tailscale" VPN and it works fine so I'm assuming it's not the router blocking the connection. Also because I've been using zerotier in a virtual machine for more than a year and I've never had connection problems from that zerotier instance).

 

Thanks very much for your hard work. 🥰

 

Just for information, I updated unraid to 6.11.5 and now everything is working again with the latest version of the container.

Link to comment
16 minutes ago, air1kdf said:

You may want to consider putting this in the install guide, as this was a requirement for mine to work.  Thank you for your work.

@air1kdf this container does exactly that on every start. If this command helped you, you either put an incorrect networkId in the container settings or a simple restart of the container would also help. 

Edited by Dmitry Spikhalskiy
Link to comment
  • 2 weeks later...

Hi, Wenn i try to give this input :

 

/ # ./zerotier-cli join xxxxxx

 

I receive this respond :


sh: ./zerotier-cli: not found

 

/ # zerotier-cli info
200 info 781219ed00 1.10.2 ONLINE
/ # zerotier-cli listnetworks
200 listnetworks <nwid> <name> <mac> <status> <type> <dev> <ZT assigned ips>
/ # zerotier-cli listpeers
200 listpeers <ztaddr> <path> <latency> <version> <role>
200 listpeers 62f865ae71 50.7.252.138/9993;8848;8674 175 - PLANET
200 listpeers 778cde7190 103.195.103.66/9993;8848;3718 126 - PLANET
200 listpeers cafe04eba9 84.17.53.155/9993;13853;13818 35 - PLANET
200 listpeers cafe9efeb9 104.194.8.134/9993;8848;3681 163 - PLANET

 

Have you a solution ?

 

Thanks 

 

Link to comment

I have two servers: Primary and Offsite. (Offsite is a backup server for Primary.) Both Primary and Offsite were using Duckdns. A few weeks ago I switched Primary to use Cloudflare with my own domain. Primary, Offsite and my laptop are connected to my Zerotier network via the shared Zerotier Nework ID. Before making the change to Cloudflare for Primary, I could turn on the Zerotier client on my laptop and connect to Primary and Offsite without a problem. Now I can only reach Offsite. Primary is not accessible. Any ideas why?

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.