Blog Home
Updated: 2023 Oct 09

How to install zerotier on debian

install zerotier

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

basic command

sudo zerotier-cli join <Network ID>
sudo zerotier-cli leave <Network ID>
sudo zerotier-cli status
sudo zerotier-cli listnetworks

add route

destination: 10.10.10.0/24
via: 192.168.193.129

iptables

sudo iptables -t nat -A POSTROUTING -o ens192 -j MASQUERADE
sudo iptables -A FORWARD -i ens192 -o ztklh56tdx -m state --state RELATED,ESTABLISHED -j ACCEPT
sudo iptables -A FORWARD -i ztklh56tdx -o ens192 -j ACCEPT

reference

Comments:

Email questions, comments, and corrections to hi@smartisan.dev.

Submissions may appear publicly on this website, unless requested otherwise in your email.