Linux 内网 VPN Zerotier 客户端安装
安装 zerotier 安装
shell
# CentOS
curl -s https://install.zerotier.com | bash
# Ubuntu
curl -s https://install.zerotier.com | sudo bash
# 输出日志
*** Enabling and starting ZeroTier service...
Created symlink from /etc/systemd/system/multi-user.target.wants/zerotier-one.service to /usr/lib/systemd/system/zerotier-one.service.
*** Waiting for identity generation...
*** Success! You are ZeroTier address [ 717xxxxxx ].
启动 Zerotier
shell
systemctl start zerotier-one.service
加入网络
shell
zerotier-cli join xxxxxxxxxxxx
开机自动启动
shell
systemctl enable zerotier-one.service
其他参考
shell
# 安装
curl -s https://install.zerotier.com | sudo bash
# 加入网络
sudo zerotier-cli join network_ID
# 查看当前连接的网络,如果列表中出现网络号说明连接成功
sudo zerotier-cli listnetworks
# 手动启动zerotier服务
sudo systemctl start zerotier-one.service
# 开机启动
sudo systemctl enable zerotier-one.service
# 断开当前加入的网络
sudo zerotier-cli leave network_ID
# 修改配置路径:/var/lib/zerotier-one/networks.d/