Difference between revisions of "Zerotier"

From ArchWiki
Jump to navigation Jump to search
(Created and explained how to setup zerotier)
m (spacing)
Line 5: Line 5:
== Installing ==
== Installing ==
ZeroTier can be [[installed]] with the {{Pkg|zerotier-one}}
ZeroTier can be [[installed]] with the {{Pkg|zerotier-one}}

Revision as of 21:45, 30 December 2017

Zerotier is an open source, cross-platform and easy to use virtual LAN / Hamachi alternative, also available on Android, ios, Mac, Windows. A GUI is only available on Mac and Windows according to the developers.


ZeroTier can be installed with the zerotier-one


You will need to create an account over at My Zerotier and create a network and select your desired options, It can have either IPv4 or IPv6 or both. Keep note of the network id that you will like to use, you will be needing it later on. Leave the network page open that you will use since you will need to authorize each computer or device, also verify that it has an ip

To begin start zerotier-one.service, if one would like it to start at boot enable zerotier-one.service. to find out what your computer id,it will be a 10 alphanumeric similar to 89e92ceee5, is run:

$ sudo zerotier-cli info
200 info 89e92ceee5 1.2.4 ONLINE

where 89e92ceee5 is address and 1.2.4 is the version, followed by its status

Next you will need to run to join a network:

 $ sudo zerotier-cli join network_id

The network will be 16 alphanumeric similiar to 8056c2e21c000001 which can be found at the top of the network page under settings.

Back on the network page at my.zerotier, you should see all address that have joined under members. Be sure sure to check the authorize for the desired addresses, and verify that it has IP address. You may need to run dhcpcd to acquire the new IP address locally.

To verify that all devices can see each other you can ping each address with its associated IP, like so

$ ping
PING ( 56(84) bytes of data.
64 bytes from icmp_req=1 ttl=53 time=52.9 ms

One can also see connected peers by running:

$ sudo zerotier-cli listpeers
200 listpeers <ztaddr> <path> <latency> <version> <role>
200 listpeers 12ac4a1e71;12;12;1.00 589 1.2.5 LEAF
200 listpeers 8841408a2e;13262;13220;1.00 127 1.1.5 PLANET
200 listpeers 9d219039f3;13241;3218;1.00 63 1.1.5 PLANET

and see a list of networks the computer is connected to by running:

$ sudo zerotier-cli listnetworks