zerotier / ZeroTierOne

A Smart Ethernet Switch for Earth
https://zerotier.com
Other
13.82k stars 1.61k forks source link

Update documentation for fully self-hosting root servers #2313

Open MarcellVokk opened 1 week ago

MarcellVokk commented 1 week ago

Hi!

I recently discovered that the documentation for self hosting my own controller and root servers is not accurate, non-eixstent or outdated. I want to be able to switch to fuly self hosted servers as the public ones are awfuly slow for some reason (joining networks, or even just starting up the zerotier service takes minutes). I also want to force all trafic trough a tcp relay, which I already managed to do, but I want to be able to self host everything zerotier related if possible.

joseph-henry commented 1 week ago

Hello.

I'll point you to the resources you want but I don't believe it is the solution you need. First, I have a few questions:

Back to self-hosting. You can self host (1) network controllers, (2a/b) roots, and (3) tcp relays. Doing just (1) is usually enough for most people. Doing (2) properly will take some care. You can (2a) add your own moons which federate up to our roots or (2b) generate your own root set that is completely independent from our roots. If you do (2b) your nodes will not be able to talk to any other ZeroTier nodes that aren't also using your roots. Also, if you don't provide high availability you'll find connecting to things to be very inconvenient. Doing (3) will generally only be useful if you're trying to get around a firewall.

If you're still sure you want to do this, you can see: