创建根服务器

docker run --restart=on-failure:3 -d --name ztncui -e HTTP_PORT=1688 -e HTTP_ALL_INTERFACES=yes -e ZTNCUI_PASSWD=mrdoc.fun -p 1688:1688 keynetworks/ztncui

1688是web访问端口

创建moon服务器

docker run --name zerotier-moon -d -p 9993:9993 -p 9993:9993/udp -v /etc/ztconf/:/var/lib/zerotier-one jonnyan404/zerotier-moon -4 1.1.1.1  

把 1.1.1.1 改成你服务器的公网ip

访问根服务器

http://ip:1688

用户名:admin
密码 :mrdoc.fun

Pasted image 20230325233724

添加一个网络

名字随意

Pasted image 20230325234124

Pasted image 20230325233954

openwrt客户端加入网络

Pasted image 20230325234245

同意openwrt加入

Pasted image 20230325234440

给openwrt加入moon服务器

获取moon服务器id

docker logs zerotier-moon

Pasted image 20230325234919

加入moon服务器

zerotier-cli orbit [moon_id] [moon_id]             

确认是否加入

zerotier-cli listpeers

Pasted image 20230325232530

windows加入moon服务器

cd C:\ProgramData\ZeroTier\One
zerotier-cli orbit [moon_id] [moon_id]

Pasted image 20230325235244