Your own moon and relay
Run a moon on a public server: make the file, open the port, orbit from clients; a TCP relay with pylon where UDP is blocked; limits on phones.

Who does what
| Job | Useful when | |
|---|---|---|
| Official roots | Introduce devices, forward if needed | Always there |
| Moon | Your own root, nearer to you | The official ones are far |
| TCP relay | Stands in when there is no UDP | A company blocks UDP |
Making a moon
You need a server with a public IP and UDP 9993 open.
On the server
cd /var/lib/zerotier-one
sudo zerotier-idtool initmoon identity.public | sudo tee moon.jsonIn moon.json set stableEndpoints to ["PUBLIC_IP/9993"], then:
Generate and place it
sudo zerotier-idtool genmoon moon.json
sudo mkdir -p moons.d && sudo mv 000000*.moon moons.d/
sudo systemctl restart zerotier-oneClients
Computers and servers
sudo zerotier-cli orbit MOON_ADDRESS MOON_ADDRESS
sudo zerotier-cli listmoonsThe official Android and iOS apps have no place for it; requests 1604 and 2351 are still open.
TCP relay
Without UDP the built-in TCP relay is slow. You can run your own with the official pylon:
A public server with Docker
docker run --init -d -p 443:443 -p 9993:9993/udp zerotier/pylon:latest reflectIn the client's local.conf:
local.conf
{ "settings": { "tcpFallbackRelay": "SERVER_IP/443", "forceTcpRelay": true } }A moon, and still relayed?
A moon introduces and forwards; whether a direct path opens depends on both NATs, see this post.
Do without the official servers entirely?
Not by adding a moon; the official roots stay listed. It was asked in 2017 and there is no ready switch.
Pages nearby
- how to use ZeroTier
- authorize ZeroTier device
- ZeroTier remote desktop
- Minecraft ZeroTier
- network planning tools
- what is a ZeroTier Network ID
- REQUESTING_CONFIGURATION
- ZeroTier IP conflict
- ZeroTier One download
Marks: ZeroTier Moon setup, ZeroTier relay server, zerotier-idtool initmoon