Skip to content

Instantly share code, notes, and snippets.

@DPS0340
Last active August 5, 2025 03:46
Show Gist options
  • Save DPS0340/fbcd7e1e15e0eeefec546017a507b0bc to your computer and use it in GitHub Desktop.
Save DPS0340/fbcd7e1e15e0eeefec546017a507b0bc to your computer and use it in GitHub Desktop.
Install tailscale on my way
sudo apt update -y && sudo apt install -y curl
curl -fsSL https://gist.github.com/DPS0340/fbcd7e1e15e0eeefec546017a507b0bc/raw/ddc770913545b5445bc5d7bddebedb738fa13d41/install-tailscale.sh | sh
curl -fsSL https://tailscale.com/install.sh | sh
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
sudo apt install -y ethtool
NETDEV=$(ip -o route get 8.8.8.8 | cut -f 5 -d " ")
sudo ethtool -K $NETDEV rx-udp-gro-forwarding on rx-gro-list off
sudo apt install -y networkd-dispatcher
sudo systemctl enable --now networkd-dispatcher
sudo systemctl is-enabled networkd-dispatcher
printf '#!/bin/sh\n\nethtool -K %s rx-udp-gro-forwarding on rx-gro-list off \n' "$(ip -o route get 8.8.8.8 | cut -f 5 -d " ")" | sudo tee /etc/networkd-dispatcher/routable.d/50-tailscale
sudo chmod 755 /etc/networkd-dispatcher/routable.d/50-tailscale
echo "Click login.tailscale.com/~~~"
sudo tailscale up --advertise-exit-node
sudo tailscale set --auto-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment