萝卜大侠 发表于 2022-2-7 18:47:08

路由器配置zerotier

环境说明:以下内容使用E750在3.211固件中测试通过

1. 创建zerotier账户
可以在 https://my.zerotier.com/ 免费注册自己的账户,注册完账户后,可以创建自己的network,每个network 有一个唯一ID。
为了方便测试,我这里将网络设为公有,任何人都可以访问

2. 在路由器上安装zerotier软件包
opkg update
opkg install zerotier3. 修改zerotier 配置文件/etc/config/zerotier, 填入自己的network ID 并打开使能

4.在/etc/config/firewall文件中添加防火墙域和转发规则

5.启动服务器,执行以下命令会生成一个虚拟网卡,如果配置正确,虚拟网卡将会获得一个局域网IP
/etc/init.d/zerotier restart
/etc/init.d/firewall restart
/etc/init.d/mwan3 stop

6. 按照同样的方式配置另一个节点或使用手机下载APP,通过ping检查网络是否连通
手机APP下载地址 https://www.zerotier.com/download/

geslx 发表于 2022-4-18 16:01:53

找了好久才找到你,谢谢分享。问一下上面的代码能不能在sft1200上使用?

萝卜大侠 发表于 2022-4-18 16:10:28

geslx 发表于 2022-4-18 16:01
找了好久才找到你,谢谢分享。问一下上面的代码能不能在sft1200上使用?

当然可以

Ghost 发表于 2022-4-18 22:23:22

这个是干嘛的

萝卜大侠 发表于 2022-4-18 22:24:29

Ghost 发表于 2022-4-18 22:23
这个是干嘛的

远程组网的

gdzhujun 发表于 2022-5-1 23:53:06

装个luci-app-zerotier有图形化页面不用这么麻烦

萝卜大侠 发表于 2022-5-2 18:19:04

gdzhujun 发表于 2022-5-1 23:53
装个luci-app-zerotier有图形化页面不用这么麻烦

图形化界面肯定更方便,但是如果遇到和其他应用冲突,还是命令行更方便排查问题

云溪 发表于 2022-5-13 21:24:38

萝卜大侠 发表于 2022-5-2 18:19
图形化界面肯定更方便,但是如果遇到和其他应用冲突,还是命令行更方便排查问题 ...

有图形页面的ipk吗 发一下

云溪 发表于 2022-5-13 21:27:21

uci: Entry not found
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
ipset v7.1: The set with the given name does not exist
iptables: No chain/target/match by that name.
iptables: No chain/target/match by that name.
* Running script '/var/etc/gls2s.include'
   ! Skipping due to path error: No such file or directory
* Running script '/usr/bin/glfw.sh'
* Running script '/usr/sbin/glqos.sh'
   ! Skipping due to path error: No such file or directory

萝卜大侠 发表于 2022-5-14 11:34:47

云溪 发表于 2022-5-13 21:27
uci: Entry not found
iptables: No chain/target/match by that name.
iptables: No chain/target/match b ...

这个错误没有影响,直接安装luci-app-zerotier呢

云溪 发表于 2022-5-17 17:15:57

萝卜大侠 发表于 2022-5-14 11:34
这个错误没有影响,直接安装luci-app-zerotier呢

luci-app-zerotier 在sft1200的软件仓库里面显示 0 k 安装报错
Collected errors:
* opkg_download_pkg: Package luci-app-zerotier is not available from any configured src.
* opkg_install_pkg: Failed to download luci-app-zerotier. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package luci-app-zerotier.

萝卜大侠 发表于 2022-5-17 18:56:10

云溪 发表于 2022-5-17 17:15
luci-app-zerotier 在sft1200的软件仓库里面显示 0 k 安装报错
Collected errors:
* opkg_download_pkg: ...

请查收附件

云溪 发表于 2022-5-19 13:14:38

萝卜大侠 发表于 2022-5-18 15:02
尝试一下

/tmp$ opkg install --force-overwrite luci-app-zerotier
Multiple packages (luci-app-zerotier and luci-app-zerotier) providing same name marked HOLD or PREFER. Using latest.
Collected errors:
* opkg_download_pkg: Package luci-app-zerotier is not available from any configured src.
* opkg_install_pkg: Failed to download luci-app-zerotier. Perhaps you need to run 'opkg update'?
* opkg_install_cmd: Cannot install package luci-app-zerotier.
Installing luci-app-zerotier (git-22.127.25320-6c1668c) to root...

IGOTP 发表于 2022-7-21 16:23:00

能不能解决一下axt1800无法运行zerotier的问题,几百块买来却用不了组网。

萝卜大侠 发表于 2022-7-23 22:39:53

IGOTP 发表于 2022-7-21 16:23
能不能解决一下axt1800无法运行zerotier的问题,几百块买来却用不了组网。

这zerotier属于第三方维护的呢

nihaolai 发表于 2023-1-14 10:18:30

好好好好好好好好好好好好好好好好好顶
页: [1]
查看完整版本: 路由器配置zerotier