网站首页 > 博客文章 正文
背景
某日,休息在家,无意中发现Openwrt的系统中有Zerotier的虚拟路由的软件,并且对于技术的好奇研究了起来。从网络上查找大量资料,但是没找到对所有讲的明白的。
网上查资料,发现Zerotier 定义了其网络的结构的几个专业名词
- PLANET 行星服务器,Zerotier 各地的根服务器,有日本、新加坡等地;
- moon 卫星级服务器,用户自建的私有根服务器,起到中转加速的作用;
- LEAF 相当于各个枝叶,就是每台连接到该网络的机器节点。
依据上方三条,我们发现,我们要搭建私有平台,就需要搭建PLANET服务器
查到个部署方案
教程1:https://www.appinn.com/zerotier-planet-server-docker-install/
开源:https://github.com/Jonnyan404/zerotier-planet
按照作者的教程1的方式,配置正常使用,自己摸索Openwrt的路由设备可以被正常识别。
但是总是感觉不对,看了教程下面的回帖,有了一下疑惑,总感觉客户端没有修改,我什么就是连接了的私有服务器了呢?后来发现其实这个教程只是安装了ztncui。
带走疑惑,找到了下面教程
教程2:https://post.smzdm.com/p/akx70kwe/
和
教程3:https://www.nuomiphp.com/t/613586b995b0dc3394796e36.html
开源:https://github.com/sbilly/docker-zerotier-controller
看了教程,和相关开源介绍,了解了这个应该才是私有服务器的搭建,并且里面的回复都很重要。
按照教程其实讲的很清楚了,按照命令执行也可以通,但是没有人去介绍patch/planets.json中的"Identity" 怎么生成。
重要回复
1. identity.* 文件是 zeortier 运行时自动创建的,也可以用 zerotier-cli generate 来生成
2. “planet 使用的公钥” 就是指 zerotier planet 的 identity.public 文件中的内容。项目里面 planet.json 对应的 identity 是 patch/planet.public 和 patch/planet.secret
3. 9333 是 zerotier 的端口,3000/4000 都是 zero-ui 的端口(缺省配置的 zero-ui 只用了 4000 端口)
4. authtoken.secret 文件是 zerotier 运行时自动创建
看到下面的回复,Identity 来自 planet.public文件
后来发现,其实很多资料需要客户端zeortier-one的软件有了这些命令才可以生成:
zerotier-idtool <command> [<args>]
Commands:
generate [<identity.secret>] [<identity.public>] [<vanity>]
validate <identity.secret/public>
getpublic <identity.secret>
sign <identity.secret> <file>
verify <identity.secret/public> <file> <signature>
initmoon <identity.public of first seed>
genmoon <moon json>
还有zerotier-cli命令
ZeroTier 生成identity.public命令
zerotier-idtool generate identity.secret
zerotier-idtool generate identity.public
报错:
zerotier-cli: missing port and zerotier-one.port not found in /var/lib/zerotier-one
执行一下:zerotier-one -d
猜你喜欢
- 2024-09-23 zookeeper开山篇-编译安装与zk基础命令使用
- 2024-09-23 CentOS 安装PHP7的正确姿势(centos安装php5.6)
- 2024-09-23 打造vuecli3+element后台管理系统(三)优化路由和vuex仓库
- 2024-09-23 |Python笔记|解决No module named 'conda'
- 2024-09-23 Linux下设置命令在任何目录下可执行(mysql、redis命令)
- 2024-09-23 风靡全球的Ollama v0.3.8新版到达
- 2024-09-23 前端CLI脚手架思路解析并从0到1搭建
- 2024-09-23 Vue2的多种使用安装方法和出现问题的解决方法
- 2024-09-23 RHEL8和CentOS8怎么设置网络(旧方法被废弃)
- 2024-09-23 vue项目问题集(vue问题总结)
你 发表评论:
欢迎- 最近发表
-
- 给3D Slicer添加Python第三方插件库
- Python自动化——pytest常用插件详解
- Pycharm下安装MicroPython Tools插件(ESP32开发板)
- IntelliJ IDEA 2025.1.3 发布(idea 2020)
- IDEA+Continue插件+DeepSeek:开发者效率飙升的「三体组合」!
- Cursor:提升Python开发效率的必备IDE及插件安装指南
- 日本旅行时想借厕所、买香烟怎么办?便利商店里能解决大问题!
- 11天!日本史上最长黄金周来了!旅游万金句总结!
- 北川景子&DAIGO缘定1.11 召开记者会宣布结婚
- PIKO‘PPAP’ 洗脑歌登上美国告示牌
- 标签列表
-
- ifneq (61)
- messagesource (56)
- aspose.pdf破解版 (56)
- promise.race (63)
- 2019cad序列号和密钥激活码 (62)
- window.performance (66)
- qt删除文件夹 (72)
- mysqlcaching_sha2_password (64)
- ubuntu升级gcc (58)
- nacos启动失败 (64)
- ssh-add (70)
- jwt漏洞 (58)
- macos14下载 (58)
- yarnnode (62)
- abstractqueuedsynchronizer (64)
- source~/.bashrc没有那个文件或目录 (65)
- springboot整合activiti工作流 (70)
- jmeter插件下载 (61)
- 抓包分析 (60)
- idea创建mavenweb项目 (65)
- vue回到顶部 (57)
- qcombobox样式表 (68)
- vue数组concat (56)
- tomcatundertow (58)
- pastemac (61)
本文暂时没有评论,来添加一个吧(●'◡'●)