[Vpn]build local network
Reene
Posted on November 29, 2024
Configure ZeroTier for Host machine and Ubuntu Machine
configure ZeroTier for communication between host and an Ubuntu machine.
Reference:
- zeroTier center: https://my.zerotier.com/
1. Install ZeroTier
S Host
- Download the ZeroTier client from https://www.zerotier.com/download/.
- Install and run the application.
- Open the ZeroTier menu bar app and log in to ZeroTier Central.
Ubuntu Virtual Machine
Run the following commands to install ZeroTier:
curl -s https://install.zerotier.com | sudo bash
2. Configure ZeroTier Network
Create a Network
- Go to https://my.zerotier.com/.
- Log in and click "Create a Network".
- Note the Network ID (e.g.,
8056c2e21c000001
). - Click on the new network and configure:
-
Name: Set a friendly name like
HomeNetwork
. -
Access Control: Select
Private
to manually approve devices.
-
Name: Set a friendly name like
3. Join the ZeroTier Network
Host
- In the ZeroTier app, click "Join Network".
- Enter the Network ID and join.
- Approve the device in ZeroTier Central by checking the
Auth
box.
Ubuntu Machine
Run the following command to join the network:
sudo zerotier-cli join <network-id>
Check connection status:
sudo zerotier-cli listnetworks
4. Assign and Verify IP Addresses
ZeroTier assigns virtual IPs automatically.
Host
Find the IP in the ZeroTier menu bar app.
Ubuntu Machine
Run the following command to check the assigned IP:
ip addr show zt*
5. Test Connectivity
Ping Test
- From host to Ubuntu: ping
- From Ubuntu to host: ping
SSH Connection
- From host: ssh user@
6. Enable ZeroTier on Startup
Ubuntu Machine
Enable and start the ZeroTier service:
sudo systemctl enable zerotier-one
sudo systemctl start zerotier-one
💖 💪 🙅 🚩
Reene
Posted on November 29, 2024
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.
Related
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024