moon服务器概述

ZeroTier支持用户自建moon服务器,即中转服务器。搭建自己的中转服务器可以有效的增强ZeroTier使用体验,如果使用官方的中转服务器,会出现延迟高,速率低等问题,ZeroTier中转服务器支持以容器的方式运行在Docker中,意味着你可以高效和快速的搭建私有ZeroTier中转服务器。

运行容器

docker run \
--name zerotier-moon \
-d --restart always \
-p 9993:9993/udp \
-v ~/somewhere:/var/lib/zerotier-one \
seedgou/zerotier-moon -4 {服务器ipv4} -6  {服务器ipv6}
  • 参数说明

    • -v 配置保存目录
    • -4 服务器ipv4地址
    • -6 服务器ipv6地址

客户端添加moon服务器

root@localhost:~# docker logs -f zerotier-moon
IPv4 address: 1.1.1.1
Your ZeroTier moon id is a7c1101353, you could orbit moon using "zerotier-cli orbit a7c1101353 a7c1101353"

使用zerotier-cli orbit a7c1101353 a7c1101353命令即可添加moon服务器,请修改成你自己的id

参考链接

最后修改:2024 年 06 月 24 日
如果觉得我的文章对你有用,请随意赞赏