当前位置:网站首页>Use Sanfeng cloud server to establish moon node and build zerotier

Use Sanfeng cloud server to establish moon node and build zerotier

2020-12-07 09:56:57 osc_ 9reytqkm


Preface

Because you want to be able to configure the equipment of the school laboratory and intelligent classroom in the dormitory , I think of it. zerotier Configure virtual lan , But the effect is not ideal ,ping The value is too high , I saw the configuration on the Internet moon node , And then we found Sanfeng cloud, a free cloud server that can be configured moon node


One 、 Configuration steps

1. I registered my account on Sanfeng cloud website , Free access to cloud servers , Configure in this cloud server zerotier

The configuration is as follows

curl -s https://install.zerotier.com/ | sudo bash   # install zerotier
sudo zerotier-cli join  XXXX   #XXXX by zerotier Network of id
cd /var/lib/zerotier-one
zerotier-idtool initmoon identity.public > moon.json
vi moon.json   # Will be one of the stableEndpoints Access to the public network ip example :["10.10.10.10/9993"]
zerotier-idtool genmoon moon.json   # Generate signature file 
mkdir moons.d   # Put the previous files in this folder 
service zerotier-one restart    # restart zerotier You can successfully configure moon node 

2. take zerotier Connect the devices in the moon node

Each device needs the signature file generated in the previous step
linux Put it in /var/lib/zerotier-one/moons.d/ in ,
windows You can find... In the service zerotier This service , Then check the file location in the properties , Create... In this file location moons.d Put the folder in the signature file , restart zerotier The service can be

The following is an introduction linux Device configuration process

cd /var/lib/zerotier-one
mkdir moons.d   # take moons The node server signature file is put into this folder 
service zerotier-one restart    # restart zerotier
zerotier-cli listpeers   # Check to see if you have added moon node 

summary

After configuration , Between each device ping The value is 120 many ms, Quite enough ok 了 , Sanfeng cloud free server bandwidth is very satisfying to me
Reference link :
https://zhuanlan.zhihu.com/p/96137545
https://blog.csdn.net/boheguo/article/details/104279139


版权声明
本文为[osc_ 9reytqkm]所创,转载请带上原文链接,感谢
https://chowdera.com/2020/12/202012070951237978.html