monlor / Monlor-Tools

小米路由器Shell工具箱,本人自用,主要参考了小米的Misstar Tools制作,仅学习之用!Telegram群组:https://t.me/joinchat/FMraA0lwzH9fzEW1wXdCFA
GNU General Public License v3.0
692 stars 135 forks source link

开启 zerotier 时,提示检测到未设置网络ID!关闭插件! #112

Open Gcaufy opened 5 years ago

Gcaufy commented 5 years ago
root@XiaoQiang:/tmp# monlor

获取工具箱版本信息...
***************************************
   *****  Monlor Tools工具箱  *****
***************************************
当前版本:[2.9.4]    最新版本:[2.9.4]
设备型号:[R3P]      上网方式:[pppoe]
***************************************
00. 管理菜单(Ctrl + c退出)
01. kms     [未运行] 
02. zerotier    [未运行] 

请输入你的选择:2

********* ZeroTier ***********
[一款非常简单易用的内网穿透工具][需要Entware环境]
启动zerotier服务?[1/0] 1
请在这里注册并获取网络ID[https://my.zerotier.com]
参考教程[http://www.right.com.cn/forum/thread-249161-1-1.html]
修改zerotier网络ID(空)?c7c8xxxxxxxxxx
【ZeroTier】: 正在停止zerotier服务... 
【ZeroTier】: 正在启动zerotier服务... 
【ZeroTier】: 检测到未设置网络ID!关闭插件!
【ZeroTier】: 正在停止zerotier服务... 
返回主菜单?[1/0] 
Gcaufy commented 5 years ago

https://github.com/monlor/Monlor-Tools/blob/7a303dc9fc8cab5abc8522e69725f464eae16cfb/apps/zerotier/script/zerotier.sh#L22

看到这里,然后 export networkid=xxxxxxx 就可以了

Gcaufy commented 5 years ago

但是zerotier似乎有问题,无法使用

root@XiaoQiang:/opt# zerotier-cli 
Bus error (core dumped)
monlor commented 5 years ago

entware可能有问题,可以尝试换个版本