Last active
January 21, 2022 15:13
-
-
Save amanjuman/8d576ed8e2822f5b9908fc9cbb3e7591 to your computer and use it in GitHub Desktop.
Install Tailscale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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