Quick Links:

Install Debian to A PC (If Not Using ZimaBoard):

Installing Tailscale

This is only guaranteed to work if you’re using the built in install on the zimaboard or if you’re running Debian 11 (buster).

In the terminal of your server:

echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf

curl -fsSL <https://pkgs.tailscale.com/stable/debian/bullseye.noarmor.gpg> | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL <https://pkgs.tailscale.com/stable/debian/bullseye.tailscale-keyring.list> | sudo tee /etc/apt/sources.list.d/tailscale.list

sudo apt-get update
sudo apt-get install tailscale

#if you don't know your subnet run:
ip a
#and write down your local IP address. 
#It most likely starts with 192.168.X.X and doesn't end in a 1
#Your subnet will be the first 3 numbers and then .0/24 (ex: 192.168.1.0/24)

sudo tailscale up --reset --advertise-routes=YOURSUBNET --advertise-exit-node