PVE

curl -fsSL https://tailscale.com/install.sh | sh

# or 
# bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/add-tailscale-lxc.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 tailscale up --advertise-routes=192.168.0.0/16

  1. Install tailscale in an lxc container and set to Start at boot (bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/add-tailscale-lxc.sh)" -s 106 )
  2. In the lxc container, set tailscale up --advertise-routes=192.168.0.0/16, and review it in the admin console.
  3. In the client side (Your local machine, MacOS for example), set sudo tailscale up --accept-routes

Macos

# tailscaled > /dev/null 2>&1 &
sudo tailscaled --tun=userspace-networking --socks5-server=localhost:1055 --outbound-http-proxy-listen=localhost:1055 > /dev/null 2>&1 &