# 一键安装curl -fsSL https://tailscale.com/install.sh | sh
# 如果网络不好可以手动安装 https://tailscale.com/download/linux/staticwget https://dl.tailscale.com/stable/tailscale_1.56.1_amd64.tgz
启动并登录
1
tailscale up
配置 IP 转发
1
2
3
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