zerotier-one

Rating: 
3.666665
Your rating: None Average: 3.7 (3 votes)

Global Area Networking

Connect cloud, mobile, desktop, and data center resources regardless of where they’re located. ZeroTier saves time and opens new possibilities by making even the most complex networks easy to deploy and manage. https://www.zerotier.com/

This package is the daemon and command line tools to use ZeroTier networking. I am not a developer, I just made a Sailfish OS package of their github source: https://github.com/zerotier/ZeroTierOne

Application versions: 
AttachmentSizeDate
File zerotier-one-1.2.99-1.armv7hl.rpm667.62 KB18/07/2019 - 22:07
File zerotier-one-1.4.2-2.armv7hl.rpm799.17 KB18/08/2019 - 19:39
File zerotier-one-1.4.6-1.armv7hl.rpm799.47 KB26/09/2019 - 23:00
File zerotier-one-1.4.6-2.armv7hl.rpm799.37 KB19/01/2020 - 13:16
Changelog: 

- Fix privileges for opening tunnel device

Comments

Kabouik's picture

Something is odd, running directly ./zerotier-cli join worked, but the Zerotier GUI still shows offline and no network, even after refresh.

Kabouik's picture

I can confirm SFOS can serve, I used it to serve a USB mouse to a distant Windows machine and it worked. It can be quite useful actually on USB OTG devices, as I imagine one could serve any USB device, even a printer or scanner, to a distant OS.

However I accidentally removed the network and now I can' t seem to add it anymore, Zerotier stays offline and the network is not added to the list. I tried restarting zerotier-one.service, to no avail, even if the service is running fine.

httpeter's picture

Yes, you are right. Ping doesn't work at all. So seems the sailfish can only consume in this network, but not serve?

theyosh's picture

Not sure. I have not tested that. You can always change your own firewall rules, but that is risky and I would not do that. Also I see no use case to serve data. I do not use it as a server.

httpeter's picture

Hey,
Great that zerotier is available. From the sailfish I can ping other devices, but the sailfish xperia x does not reply, when it gets pinged itself. On neither request I am able to get a positive reply. When connecting via lan ip, not an issue.

theyosh's picture

Hi,

as far as I can judge this is Sailfish OS behaviour. Pinging the phone is disabled for me:

Chain INPUT (policy DROP)
target     prot opt source               destination         
connman-INPUT  all  --  0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
connman-OUTPUT  all  --  0.0.0.0/0            0.0.0.0/0           

Chain connman-INPUT (1 references)
target     prot opt source               destination         
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            tcp dpt:22
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0            icmp !type 8 code 0
ACCEPT     33   --  0.0.0.0/0            0.0.0.0/0            multiport dports 1024:65535
ACCEPT     sctp --  0.0.0.0/0            0.0.0.0/0            multiport dports 1024:65535
ACCEPT     tcp  --  0.0.0.0/0            0.0.0.0/0            multiport dports 1024:65535
ACCEPT     udplite--  0.0.0.0/0            0.0.0.0/0            multiport dports 1024:65535
ACCEPT     udp  --  0.0.0.0/0            0.0.0.0/0            multiport dports 1024:65535
ACCEPT     47   --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     esp  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     ah   --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED

Chain connman-OUTPUT (1 references)
target     prot opt source               destination         
ACCEPT     all  --  0.0.0.0/0            0.0.0.0/0           
ACCEPT     icmp --  0.0.0.0/0            0.0.0.0/0            icmp !type 0 code 0

On the connman-INPUT ICMP type 8 message which is an ping request (https://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Control_...) is dropped.

The same for the connman-OUPUT. There type 0 ICMP is dropped, so you will never get a ping response on your request.

So I do not know why you can ping it on your network. As I can't do that. My phone is just not pingable. Which is a security measurement, and needed when you are on GPRS data

frip's picture

(EDIT: Actually, this comment is related to the GUI app of ZeroTier, apologies on posting it here.)

Thank you for the ZeroTier package! I would be eagerly testing it, but it seems to depend on dbus and I cannot figure out why I cannot install this lib. When I attempt to start the GUI app (from the command line) in my Sony Xperia XA2, it shows the following error message:

File "/usr/share/harbour-zerotier-one-gui/qml/ZeroTierOne.py", line 15, in <module>
    import dbus
ModuleNotFoundError: No module named 'dbus'

I have tried to install all kinds of dbus libs without a success to get this part running.

Due to this error I cannot register and connect to ZeroTier networks. I will try to sort it out somehow. However, some complementary information about the required dependencies would be appreciated. Thank you anyway, this is an interesting and promising starting point!

 

theyosh's picture

Hi,

I made an update, which should install the missing depedency.

frip's picture

Great, so many thanks! Now it works like a charm! It is, indeed, nice to have Zerotier now in my XA2, too!

theyosh's picture

Package version is 1.2.99-1 as this is still in the rpm build package. The source is from the dev branch and have version 1.4.0. This dev branch will compile better on Sailfish OS. I have tested it now for a couple of weeks, and it is pretty stable