Step 01: Update system
sudo apt update && sudo apt -y upgrade
Step 02: Join ZeroTier Network
ZeroTier Central (https://my.zerotier.com/) is where you can setup and control your virtual network and manage connected devices. Register and account and create a network here: https://my.zerotier.com/network
- Change network name
- Check IPv4 Auto-Assign and ensure the UP range is not conflicting with some of your own devices.
- Ensure Certificate (Private Network) is checked under Access Control.
- Remember (write down) the Network ID
Step 03: Install ZeroTier
curl -s https://install.zerotier.com | sudo bash
Let ZeroTier starts on system boot, run
sudo systemctl enable zerotier-one
See status of ZeroTier
sudo zerotier-cli status
Hopefully it returns 200 info [ID] [version] ONLINE
Step 04: Join ZeroTier Network
sudo zerotier-cli join [Network ID]
Step 05: Authenticate Your Device
Go to https://my.zerotier.com/network/[Network ID] and under Members check the Auth box.
Step 06: Verify Connection
If your Raspberry Pi is properly connected you should see 200 listnetworks […] OK PRIVATE […] [IP(s) of Raspberry Pi]/24 when entering the following command:
sudo zerotier-cli listnetworks
Step 07: Raspberry Pi Autojoin Zerotier on Boot
run sudo touch /var/lib/zerotier-one/networks.d/[Network ID].conf
Optional: UFW /Firewall
If you have UFW or a firewall installed remember to open the port(s) and / or IP(s).