Tailscale CLI on Linux
Install
Section titled “Install”curl -fsSL https://tailscale.com/install.sh | shsudo systemctl enable --now tailscaledJoin Tailnet
Section titled “Join Tailnet”sudo tailscale upWith auth key and hostname:
sudo tailscale up --authkey tskey-auth-xxxxx --hostname my-nodeUse routes advertised by other nodes (laptop, VPS, etc.):
sudo tailscale up --accept-routesCheck status
Section titled “Check status”tailscale statustailscale ip -4tailscale ping <hostname>sudo systemctl status tailscaledAdvertise routes (subnet router on Proxmox LXC/VM)
Section titled “Advertise routes (subnet router on Proxmox LXC/VM)”Tailscale inside an LXC/VM bridged to vmbr0 — exposes lab subnets to the Tailnet.
Enable forwarding:
echo 'net.ipv4.ip_forward = 1' | sudo tee /etc/sysctl.d/99-tailscale.confsudo sysctl -p /etc/sysctl.d/99-tailscale.confAdvertise one or more subnets (comma-separated):
sudo tailscale up \ --hostname homelab-gw \ --advertise-routes=192.168.10.0/24,192.168.99.0/24 \ --accept-routesApprove routes in admin console → machine → Edit route settings.
Remote clients need --accept-routes to reach those IPs.
Verify from client:
tailscale statusping 192.168.10.50Disconnect
Section titled “Disconnect”sudo tailscale downsudo tailscale logout # leave Tailnet, needs re-auth