···11+22+## Overview
33+44+This guide explains how to set up and manage a [ZeroTier VPN](https://zerotier.com) for a clan network. Each VPN requires a single controller and can support multiple peers and optional moons for better connectivity.
55+66+## Roles
77+88+### 1. Controller
99+1010+The [Controller](https://docs.zerotier.com/controller/) manages network membership and is responsible for admitting new peers.
1111+When a new node is added to the clan, the controller must be updated to ensure it has the latest member list.
1212+1313+- **Key Points:**
1414+ - Must be online to admit new machines to the VPN.
1515+ - Existing nodes can continue to communicate even when the controller is offline.
1616+1717+### 2. Moons
1818+1919+[Moons](https://docs.zerotier.com/roots) act as relay nodes,
2020+providing direct connectivity to peers via their public IP addresses.
2121+They enable devices that are not publicly reachable to join the VPN by routing through these nodes.
2222+2323+- **Configuration Notes:**
2424+ - Each moon must define its public IP address.
2525+ - Ensures connectivity for devices behind NAT or restrictive firewalls.
2626+2727+### 3. Peers
2828+2929+Peers are standard nodes in the VPN.
3030+They connect to other peers, moons, and the controller as needed.
3131+3232+- **Purpose:**
3333+ - General role for all machines that are neither controllers nor moons.
3434+ - Ideal for most clan members' devices.