Getting Started
For Users — Peering via Telegram Bot
The easiest way to peer with MoeNet on DN42 is through the Telegram Bot.
Prerequisites
- A registered DN42 AS number
- Authentication credential registered in DN42 registry (GPG key, SSH key, or email)
- A server with WireGuard installed
Step 1: Login
Open @moenetdn42bot and authenticate:
/login 4242421080The bot will ask you to choose an authentication method:
- GPG — Sign a challenge with your registered GPG key
- SSH — Sign a challenge with your SSH key
- Email — Receive a one-time code at your registered email
Step 2: Create Peer
/peerThe peer creation wizard guides you through:
- Select node — Choose the nearest MoeNet node
- WireGuard endpoint — Your server's public IP and port
- WireGuard public key — Your WireGuard public key
- IPv6 address — Your DN42 IPv6 address
- Link-local — Your link-local IPv6 address
- MTU — Tunnel MTU (default: 1420)
Step 3: Configure Your Side
After admin approval, the bot sends you the server-side details:
✅ Peer approved!
Server endpoint: jp.moenet.work:24001
Server public key: ABC123...
Server link-local: fe80::998:1Configure your WireGuard interface and BIRD accordingly.
Step 4: Verify
Open /peer, tap your peer, then 📊 Status to check that your WireGuard tunnel is up and the BGP session is established.
For Operators — Deploying a Node
Bootstrap Mode (Recommended)
Add a node via the Telegram bot (admin only): send
/node, then tap ➕ Add Node and follow the wizard (name, location, public IP, region…).Get the bootstrap command: on the new node's detail card (
/node→ tap the node), tap 🔑 Bootstrap to reveal (or refresh) its install command.Run it on your server:
bashcurl -fsSL "https://api.moenet.work/bootstrap/YOUR_TOKEN" | bash
Node management (add / edit / delete / bootstrap / maintenance) all lives under
/nodenow; the old/addnode,/bootstrap,/delnodecommands were merged into it.
The bootstrap script:
- Downloads the latest
moenet-agentbinary - Creates systemd service
- Writes initial config with Control Plane token
- Starts the agent (auto-connects and self-configures)
Manual Installation
# Download latest release
curl -L -o /opt/moenet-agent/moenet-agent \
https://github.com/heichaowo/moenet-agent/releases/latest/download/moenet-agent-linux-amd64
chmod +x /opt/moenet-agent/moenet-agent
# Create config
cat > /etc/moenet-agent/config.json << 'EOF'
{
"controlPlane": {
"url": "https://api.moenet.work",
"token": "your-agent-token"
},
"server": {
"listen": ":24368"
}
}
EOF
# Start
systemctl enable --now moenet-agentUseful Commands
| Command | Description |
|---|---|
/help | Show all available commands |
/peer | Everything peering — view/create peers and, on a peer's detail card, Modify · Delete · Status · Restart (all inline) |
/ping <target> | Ping from MoeNet nodes |
/trace <target> | Traceroute from nodes |
/whois <query> | DN42 WHOIS lookup |
/route <prefix> | BGP route lookup |
Peer management used to be split across
/info/modify/remove/restart/status; those still work but are no longer in the menu — use/peer.