Set up Zerotier Planet server on Centos

Zerotier is abroad, and it is often difficult to access, and the Moon root service is not very easy to use. We can set up a Planet by ourselves.

First open the 9993, 9994, 3443 ports Tcp and udp on the server firewall.

First, install Docker CE

update system source

sudo yum update

Install the yum-utils tool

sudo yum -y install yum-utils

Add package to local cache

sudo yum makecache fast

Install Docker CE

sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

update system source

sudo yum update
sudo yum -y install docker-ce

Start automatic service

sudo systemctl enable docker

start service

sudo systemctl start docker

test docker

sudo docker run hello-world

insert image description here
Here it means that the installation of Docker is successful

Install Git


yum install git

Install Planet

pull install script

git clone https://github.com/xubiaolin/docker-zerotier-planet.git

Run the deploy.sh script

./deploy.sh

Enter 9994 for the port, and follow the prompts for others.
Wait until the following prompt appears to indicate successful installation.

启动服务                                                                                                                                        
3b59df95edabeabbf19aa6605b28704608710719bdf7c6e7612d75d01ede8f48                                                                                
Preparing to copy...
Copying from container - 512B
Copying from container - 769B
Copying from container - 1.024kB
Copying from container - 1.536kB
Successfully copied 2.048kB to /tmp/planet
planet文件路径为 /tmp/planet
planet server端口为: 9994, 请在防火墙放行该端口的tcp和udp协议
enjoy~

Visit http://ip:3443 to enter the controller page
insert image description here

The default account is: admin
The default password is: password

The specific configuration is almost the same as the official one. Or refer to here for configuration.

Client installation preparation

After installing Planet, there is a planet file under /tmp/, download the file to the local

Windows version settings

After installing the ZeroTier client.
Putting the plant file into the C:\ProgramData\ZeroTier\One
directory is hidden
Restart the ZeroTier service

OpenWrt or other Linux

Enter the directory /var/lib/zerotier-one
and replace the planet file in the directory with the downloaded planet file.
Restart the service service zerotier-one restart
and join the network zerotier-cli join network id

android settings

After downloading ZerotierFix
Android, configure Planet in the settings.

For details on how to connect and set up, you can read my article - no public network IP can access every device at home through bypassing openwrt's Zerotier

zerotier-cli peers

insert image description here
If you see only one Planet, then the Leaf is the client link.

refer here

Guess you like

Origin blog.csdn.net/thinbug/article/details/129706997