Zerotier 端口穿透客户端

Nan (/)
2023-12-10T12:16:00+08:00

一 liunx安装

# 下载并安装 zerotier-one
curl -s https://install.zerotier.com | sudo bash

# 删除自带 planet
rm -rf /var/lib/zerotier-one/planet

# 复制下载的 planet
cp /home/yanan/Desktop/planet /var/lib/zerotier-one/planet

# 重启服务
# [start|stop|status|restart|reload|force-reload]
systemctl restart zerotier-one
sudo service zerotier-one start

# 查看网络节点是否为一个自建服务器
zerotier-cli listpeers
# 返回类似
200 listpeers 46492b477f 116.62.60.232/9993;2473;2404 67 1.10.2 PLANET

# 加入网络
zerotier-cli join 自建网络id

二 MAC安装

# 下载安装包
https://download.zerotier.com/dist/ZeroTier%20One.pkg

# 删除自带 planet
rm -rf /Library/Application Support/ZeroTier/One/planet

# 复制下载的 planet
cp /Users/yanan/Downloads/planet /Library/Application\ Support/ZeroTier/One/planet

# 重启
launchctl unload /Library/LaunchDaemons/com.zerotier.one.plist
launchctl load /Library/LaunchDaemons/com.zerotier.one.plist

# 查看网络节点是否为一个自建服务器
zerotier-cli listpeers
# 返回类似
200 listpeers 46492b477f 116.62.60.232/9993;2473;2404 67 1.10.2 PLANET

# 加入网络
zerotier-cli join 自建网络id

三 删除客户端

# linux
dpkg -P zerotier-one
rm -rf /var/lib/zerotier-one/

# mac
/Library/Application\ Support/ZeroTier/One/uninstall.sh
rm -rf /Library/Application\ Support/ZeroTier

四 错误

ZeroTier ui 提示: waiting for zerotier system service

# 移除文件夹
rm -rf /Library/Application\ Support/ZeroTier
# 安装旧版
https://download.zerotier.com/RELEASES/1.6.1/dist/
# 重新安装新版