Skip to content

Instantly share code, notes, and snippets.

@amanjuman
Last active January 21, 2022 15:13
Show Gist options
  • Save amanjuman/8d576ed8e2822f5b9908fc9cbb3e7591 to your computer and use it in GitHub Desktop.
Save amanjuman/8d576ed8e2822f5b9908fc9cbb3e7591 to your computer and use it in GitHub Desktop.
Install Tailscale
curl -fsSL https://tailscale.com/install.sh | sh
sudo apt-get update && sudo apt-get install tailscale -y
echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.conf
sudo sysctl -p /etc/sysctl.conf
## Linux Up
sudo tailscale up --advertise-exit-node --accept-routes --advertise-routes=10.0.0.0/24,10.0.1.0/24
## OpenWRT
tailscale up --accept-dns=false --advertise-exit-node --accept-routes --advertise-routes=192.168.XX.YY/24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment