Skip to content

Instantly share code, notes, and snippets.

@rampfox
Last active December 15, 2021 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rampfox/0ac269f4213f03b55d52b42cd3e5d0a7 to your computer and use it in GitHub Desktop.
Save rampfox/0ac269f4213f03b55d52b42cd3e5d0a7 to your computer and use it in GitHub Desktop.
Accessing your Raspberry Pi securely from the Internet using ZeroTier

How-to Install ZeroTier on Raspberry Pi

Tested with RPi 3B+, Raspberry Pi OS Buster

  1. Run the shell command under their download page (the more secure, GPG option is recommended).
  2. To ensure ZeroTier starts on system boot, run sudo systemctl enable zerotier-one
  3. Check if everything is working by running sudo zerotier-cli status;

    it should return 200 info [ID] [version] ONLINE if all is fine

  4. To join the network, run sudo zerotier-cli join [Network ID]
  5. Authenticate your device by going to https://my.zerotier.com/network/[Network ID]

    scrolling down to Members and checking the Auth checkbox

  6. Check that your Raspberry Pi is properly connected by running sudo zerotier-cli listnetworks

    to see 200 listnetworks [...] OK

  7. To have your Raspberry Pi automatically join the virtual network on system boot, simply run sudo touch /var/lib/zerotier-one/networks.d/[Network ID].conf

If you have UFW or any other firewall software installed, ensure that you allow traffic going to and from your private IP range

Ref: iamkelv.in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment