SoFunction
Updated on 2025-04-12

Zerotier deployment process for building free moon servers

ZeroTier is a software used to build virtual LANs that allows users to connect devices around the world as if they were all within the same LAN. It enables direct point-to-point connection between devices by creating a secure network overlay layer, allowing easy management and access to network resources no matter where the device is. ZeroTier features include directness, reliability, flexibility, lightweight, cross-platform compatibility, transparency, ease of use, unified management, privacy protection, end-to-end encryption and authentication, etc.

🌟 Preface

ZeroTier is a P2P-based virtual networking tool, built by ==‌Moon server‌==Can greatly improve the connection quality of cross-operator/cross-national nodes. This article uses cloud services to demonstrate the deployment process.

📋 Preparation

Register a Sanfeng Cloud Account

Create a CentOS 8.5 instance‌ (Here we select centos8 or above, there may be problems with other versions
Console → Cloud Server → Create an instance

  • Mirror selection:CentOS 8.5 64-bit
  • Security group open port: ‌TCP/UDP 9993

🛠️ Moon server deployment

Step 1: Log in to the server

bash
ssh root@your_server_ip  # Replace with actualIP

Step 2: Install ZeroTier

# Add ZeroTier repositorycurl -s  | sudo bash
# Verify installationzerotier-cli -v
# Output example:zerotier-cli 1.10.6

Step 3: Generate Moon configuration file

# Enter the configuration directorycd /var/lib/zerotier-one
# Generate Moon nodeszerotier-idtool initmoon  >> 

Step 4: Configure the Moon Server

vi 
{
  "settings": {
    "stableEndpoints": [
      "your_server_ip/9993"  # Fill in the server public IP    ]
  }
}

Generate .moon file

zerotier-idtool genmoon 

Step 5: Restart the service

systemctl restart zerotier-one
systemctl enable zerotier-one

🔍 Client connection test

# Linux/MacOS
sudo zerotier-cli orbit 000000xxxxxx 000000xxxxxx  # Fill in Moon ID# Windows
 orbit 000000xxxxxx 000000xxxxxx

Verification command‌:

zerotier-cli listpeers
# Appear "moon" That means success

This is the end of this article about zerotier building a free moon server. For more related content on zerotier building a moon server, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!