我要投稿如果你有好的文章,欢迎分享给我们,我们会给与适当的补贴

ZeroTier—P2P内网穿透工具

ZeroTier 作为一款不错的内网穿透软件,其实我很少有机会用到。但是因为WFH的原因,结果还是折腾的安装了。然后发现,挺好用的。

ZeroTier的安装

安装其实很简单:

首先注册一个账号,在这里, 获取16位的网络id。

在命令行终端运行以下命令,程序会自动安装。这种方式会校验脚本的完整性,防止恶意脚本。

curl -s 'https://raw.githubusercontent.com/zerotier/download.zerotier.com/master/htdocs/contact%40zerotier.com.gpg' | gpg --import && \
if z=$(curl -s 'https://install.zerotier.com/' | gpg); then echo "$z" | sudo bash; fi

加入网络

sudo zerotier-cli join ########your_network_id###

然后在管理界面授权

ZeroTier Moon的安装

ZeroTier的使用

这个需要在zerotier里面添加一条路由:
例如你的K2P路由器的内网IP地址为 192.168.2.1;
K2P在zerotier分配的172.22.90.120;
则在zerotier路由选项添加 192.168.2.0/24     172.22.90.120
这样就可以远程在安装zerotier的电脑,直接访问内网地址,例如qb:192.168.2.100:9094

Add a Comment

Your email address will not be published. Required fields are marked *