[Feelings & Sharing] 三丰云服务器建立moon节点搭建zerotier虚拟局域网
Tofloor
poster avatar
HelloWorld!
deepin
2024-02-29 18:10
Author

说明:买了群晖nas,但是申请不到公网ip,只能使用内网穿透,因此找到了zerotier这个软件,可以建立异地局域网,但是在使用的时候效果并不理想,延迟很大,还丢包,非常不稳定.最终使用三丰云搭建moon服务器

image.png

第一步:注册三丰云免费云服务器

image.png

第二步:在云服务器安装zerotier

image.png

  • 登陆云服务器宝塔面板,使用ssh终端,或者在宝塔打开ssh远程登陆,用电脑终端登陆到云服务器

  • 然后是安装zerotier

    image.png

  • curl -s https://install.zerotier.com/ | sudo bash
    

image.png

  • zerotier-cli join  [zerotier的网络号(https://my.zerotier.com/)]
    加入后会提示200,就算成功了,然后在zerotier管理页面,给新设备打个勾
    

image.png

image.png

  • cd /var/lib/zerotier-one
    
  • zerotier-idtool initmoon identity.public > moon.json
    
  • ​vim moon.json
    #在stableEndpoints中加入云服务器的ip+/9993
    

image.png

image.png

  • zerotier-idtool genmoon moon.json   #生成签名文件
    mkdir moons.d   #将前面文件放入这个文件夹中
    mv 000000xxxxxxxx ./moons.d/ #0000xxxx这个文件就是上面生成的,后面要用到这个文件名
    
    

image.png

  • ​service zerotier-one restart #重启服务
    zerotier=cli info 
    

image.png

第3步:把.moon文件拷贝到加入这个网络的设备上或者执行以下命令

  • zerotier-cli orbit xxxx xxxx #xxxx是上面.moon文件命去掉前面的000000
    

image.png

  • zerotier-cli listpeers
    #可以看到有刚才加的节点,后面是MOON
    

image.png

image.png

每个设备都这样设置一下就可以了

第4步:ping一下,

image.png

上传速度比之前快了不少,之前几十k的传输速度,如果不是跨运营商的话,应该还会快一点
image.png

Reply Favorite View the author
All Replies
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-02-29 18:26
#1

用花生壳也不行?

Reply View the author
HelloWorld!
deepin
2024-02-29 18:33
#2
把一切操作变成GUI

用花生壳也不行?

花生壳那个带宽太低了,用在nas上不太行

Reply View the author
出售星辰之书的书商
Moderator
2024-02-29 18:37
#3

applaud 学到了学到了 最近刚好在折腾一台电子垃圾 等会我就去试试

Reply View the author
HelloWorld!
deepin
2024-02-29 18:42
#4
出售星辰之书的书商

applaud 学到了学到了 最近刚好在折腾一台电子垃圾 等会我就去试试

可以试试这个樱花内网穿透,免费还能签到领流量,比zerotier稳定(https://www.natfrp.com/user/)
image.png

Reply View the author
neko
deepin
Ecological co-builder
2024-02-29 20:22
#5

我一般用n2n白嫖节点XD

Reply View the author
HelloWorld!
deepin
2024-02-29 21:31
#6
neko

我一般用n2n白嫖节点XD

打算明天试试ipv6了,穿透不好用

Reply View the author
把一切操作变成GUI
deepin
Backbone of ecological co-construction group
2024-02-29 22:09
#7
HelloWorld!

打算明天试试ipv6了,穿透不好用

对,为什么一开始没想到ipv6呢?

ipv6有什么缺点吗?

Reply View the author
HelloWorld!
deepin
2024-02-29 22:46
#8
把一切操作变成GUI

对,为什么一开始没想到ipv6呢?

ipv6有什么缺点吗?

ipv6难记,而且是动态的,我刚把ipv6开通,研究研究

Reply View the author
YL-Jack
deepin
2024-03-01 11:25
#9

CentOS 7.9还有三个月就停止维护了

Reply View the author
HelloWorld!
deepin
2024-03-01 15:09
#10
YL-Jack

CentOS 7.9还有三个月就停止维护了

已换ipv6了

Reply View the author
kero990
deepin
2024-03-01 15:12
#11

三丰?是那个不停发帖续期,还收2块开通费的那个吧。

没那个时间。。。。。。

Reply View the author
YL-Jack
deepin
2024-03-01 16:01
#12
HelloWorld!

已换ipv6了

CentOS 7.9停止支持和将IPV4切换为IPV6好像没有什么关系……

我的意思是该换系统了,比如Rocky Linux 9.3

Reply View the author
HelloWorld!
deepin
2024-03-01 16:54
#13
YL-Jack

CentOS 7.9停止支持和将IPV4切换为IPV6好像没有什么关系……

我的意思是该换系统了,比如Rocky Linux 9.3

我用ipv6就不用这个云服务器了

Reply View the author