1. Create a CT in Proxmox

  1. Download the “debian-11-standard_amd64” container template
  2. Deploy the above container template by clicking on “Create CT” on the top right of the Proxmox Web GUI (Keep the resources minmal)

2. Install dependencies

  1. Once the container is created, update the container:
apt update -y && apt upgrade -y
  1. Install packages
apt install curl vim htop

3. Append following lines to lxc config file in proxmox host

For example, if container ID is 101, then append the following lines to /etc/pve/lxc/101.conf:

lxc.cgroup2.devices.allow: c 10:200 rwm
lxc.mount.entry: /dev/net/tun dev/net/tun none bind,create=file

4. Install & Setup Tailscale

  1. Add Tailscale’s package signing key and repository:
curl -fsSL https://pkgs.tailscale.com/stable/debian/bullseye.noarmor.gpg | tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null

curl -fsSL https://pkgs.tailscale.com/stable/debian/bullseye.tailscale-keyring.list | tee /etc/apt/sources.list.d/tailscale.list
  1. Install Tailscale:
apt update 
apt install tailscale
  1. Connect your machine to your Tailscale network and authenticate in your browser:
tailscale up --advertise-routes=10.0.1.0/24
  1. Enable the Subnet Route
    1. Go to the 3 dots on the right of the new machine
    2. Click on “Edit route settings”
    3. Toggle the subnet route for the new IP range that you introduced
    4. Optionally, also disable key expiry