zerotier.is
AdLuoboyunAn account comes with 1 GB of trial traffic for 24 hours, used with Clash / MihomoPays by Alipay, WeChat, cryptoGet the trialLuoboyun: 1 GB on registrationFor 24 hours, Alipay / WeChat / cryptoGet the trialAd
  1. Home
  2. Blog
  3. Self-hosting

Self-hosting Written

Is a moon still worth it

What a moon improves and what not: phones cannot join, the official roots remain, how it differs from a controller, and what to check first.

Closer and brighter, but it is not the sun
Closer and brighter, but it is not the sun Yair Haklai, CC BY-SA 3.0

A moon is step one in many guides and most people have no use for it. See first which part it covers.

Search for "faster ZeroTier" and every page builds a Moon. The documentation no longer gives it a prominent place. Some examples of who notices it and who does not.

Three roles

RoleDoesRun by
Root (planet)Introduces devices, forwards if neededZeroTier
MoonThe same, as one more choiceYou
ControllerWho may join and which addressThe console, or you

If the console is slow or 10 devices are too few, you want a controller, not a moon.

What it improves

  • Relayed traffic goes through your nearby server instead of far away.
  • When the roots cannot be reached for a while, devices with the moon still find each other.

What it does not

  • Two symmetric NATs still do not connect directly.
  • Phones cannot join. The official apps have no entry; request 1604 of 2022 is still open.
  • It does not replace the roots, it adds one.
  1. Any RELAY in peersif not, no moon
  2. Is it a PC or a phonephones gain nothing
  3. A public serverwithout one, no
  4. Upkeepit has to run for good
Ask yourself first

Did it work

On a client
zerotier-cli peers | grep MOON

A MOON line with a latency means yes. Steps are in moon and relay.

Replacing the planet file

Some guides swap the planet file, that is, all official roots. Every device's file has to be changed, updates overwrite it, and phones need an app someone else modified.

Three people

A: home and office cannot punch, three hundred milliseconds by relay, all computers. A small nearby server as Moon brings sixty. Worth it.

B: mostly a phone to the NAS. Phones cannot join a Moon. Useless; get IPv6 or a public address at home.

C: already direct. Direct traffic never passes the Moon. No change.

So read zerotier-cli peers first. DIRECT means stop here.

What it costs

  • A server with a public IP, always on.
  • UDP 9993 open, in the cloud and the system.
  • orbit on every computer.
  • A new IP means new files everywhere.

Its bandwidth is the relay's speed: 3 Mbps is some 350 KB/s.

Compared

WayPhonesServerEffect
IPv6YesNoDirect, best
Forward 9993YesNo, public IPDirect
Bridge modeYesNoWith luck
MoonNoYesBetter
Own controllerYesYesNone
Software with own relaysYesYesBetter

The last, such as Tailscale with your own DERP or EasyTier, also helps phones.

No MOON in the list

  1. The file has an internal address.
  2. It lies outside moons.d; restart the service.
  3. orbit needs the same ten digits twice.
  4. Only TCP is open.
  5. Versions differ too much.
On the server
sudo ss -lunp | grep 9993

Removing it

Every device
zerotier-cli deorbit the-ten-digits

Delete the file in moons.d and restart.

Does a moon see my traffic?

Only encrypted.

Is a small one-core server enough?

With little to forward, yes; its bandwidth is the limit.

Two Moons?

A spare for each other; not needed for one person.

Does the Moon join the network?

No.

A Moon far away?

Hardly better than the official roots.

Up next

Pages nearby

Marks: is a ZeroTier Moon useful, Moon vs Planet, self-hosted ZeroTier root