Install ZeroTier on an AWS Ubuntu server Step by Step

mahabub.devs3
Mahabubur Rahman
Published on Feb, 17 2025 2 min read 0 comments
Text Image

To install ZeroTier on an AWS Ubuntu server, follow these steps:

Step 1: Connect to Your AWS Ubuntu Server

Use SSH to connect to your AWS Ubuntu server:

ssh -i /path/to/your-key.pem ubuntu@your-server-ip

Step 2: Update the System

Update the package list and upgrade installed packages:

sudo apt update && sudo apt upgrade -y

Step 3: Install ZeroTier

Install ZeroTier by running the following commands:

curl -s https://install.zerotier.com | sudo bash

This script will add the ZeroTier repository, install the ZeroTier client, and start the ZeroTier service.

Step 4: Join a ZeroTier Network

Join your ZeroTier network by running:

sudo zerotier-cli join YOUR_NETWORK_ID

Replace YOUR_NETWORK_ID with the actual ID of your ZeroTier network.

Step 5: Authorize the Server in ZeroTier Central

Go to the ZeroTier Central website.

Find your network and authorize the new node (your AWS Ubuntu server) by checking the box next to its ID.

Step 6: Verify the Connection

Verify that your server has joined the ZeroTier network and has been assigned an IP address:

sudo zerotier-cli listnetworks

You should see your network ID and an assigned IP address.

Step 7: (Optional) Set ZeroTier to Start on Boot

Ensure ZeroTier starts automatically on boot:

sudo systemctl enable zerotier-one

Step 8: (Optional) Configure Firewall

If you have a firewall enabled (e.g., ufw), allow traffic on the ZeroTier interface:

sudo ufw allow in on zt0

Step 9: Test Connectivity

Test connectivity to other devices in your ZeroTier network using the assigned ZeroTier IP addresses.

Troubleshooting

If the server doesn't get an IP address, ensure it is authorized in ZeroTier Central.

Check the ZeroTier service status:

sudo systemctl status zerotier-one

That's it! Your AWS Ubuntu server is now part of your ZeroTier network.

0 Comments