KALI_XRDP=1 installs xrdp while the template is still a VM, so every clone and every kali reset keeps it. The lab has no Internet, so the host runs a temporary squid bound to 10.10.10.1 and restricted to the probe address (10.10.10.249); it is stopped and disabled afterwards. A ~/.xsession is written for kali so the xfce session starts under xrdp. Docs cover exposing one RDP port per seat with socat (3381..3385).
100 lines
4.2 KiB
Plaintext
100 lines
4.2 KiB
Plaintext
# lab.conf — Proxmox VE platform
|
|
#
|
|
# Fill in the PVE_* block for your host: the rest works unchanged.
|
|
# Verify every value with `./lab.sh check` before building anything.
|
|
# Local overrides go in lab.conf.local (gitignored).
|
|
|
|
# ---------------------------------------------------------------- identity
|
|
BACKEND="proxmox"
|
|
LAB_NAME="norbourg"
|
|
DOMAIN="norbourg.lab"
|
|
NETBIOS="NORBOURG"
|
|
FLAG_PREFIX="NORBOURG"
|
|
|
|
# ---------------------------------------------------------------- network
|
|
# Lab segment. Nothing here is ever bridged to the office LAN.
|
|
LAB_SUBNET="10.10.10.0/24"
|
|
LAB_NETMASK="24"
|
|
LAB_PREFIX="10.10.10"
|
|
LAB_HOST_IP="10.10.10.1" # the Proxmox host, on the lab bridge
|
|
LAB_DC_IP="10.10.10.10" # DC01, also the lab DNS server
|
|
LAB_GATEWAY="10.10.10.1" # default gateway handed to the VMs
|
|
OFFICE_SUBNET="192.168.10.0/24"
|
|
|
|
# ---------------------------------------------------------------- Proxmox VE
|
|
# Storage for VM disks. Must support images (local-lvm, local-zfs, ...).
|
|
PVE_STORAGE_DISKS="local-lvm"
|
|
# Storage for ISOs (content type "iso"). `pvesm status -content iso` lists them.
|
|
PVE_STORAGE_ISO="local"
|
|
# Filesystem path behind PVE_STORAGE_ISO; ISOs and seed ISOs are written here.
|
|
# For the default `local` storage this is /var/lib/vz/template/iso.
|
|
PVE_ISO_DIR="/var/lib/vz/template/iso"
|
|
|
|
# Portless, isolated bridge. Create it in the GUI first:
|
|
# Datacenter > node > Network > Create > Linux Bridge, name vmbr10,
|
|
# no ports, IPv4 10.10.10.1/24, no gateway.
|
|
PVE_BRIDGE="vmbr10"
|
|
|
|
# Address your colleagues type in their browser. Leave empty to use this
|
|
# host's FQDN; set it if the Proxmox UI is reachable at another name/address.
|
|
PVE_WEB_HOST=""
|
|
|
|
# VM ids. dc01=base+0, fs01=base+1, ws01=base+2; templates use base+100.
|
|
PVE_VMID_BASE=1100
|
|
PVE_OSTYPE="win11" # PVE has no win2k22; win11 covers Server 2022
|
|
PVE_BIOS="seabios" # Windows 11 would need ovmf + efidisk0 + tpmstate0
|
|
PVE_MACHINE="q35"
|
|
PVE_CPU="host"
|
|
PVE_NET_MODEL="e1000"
|
|
PVE_AGENT=1 # requires the QEMU guest agent in the guest
|
|
|
|
# ---------------------------------------------------------------- storage
|
|
LAB_ROOT="${LAB_ROOT:-/var/lib/norbourg-lab}"
|
|
SEED_DIR="$PVE_ISO_DIR" # seed ISOs must live in an ISO storage
|
|
LAB_ISO_CACHE="$PVE_ISO_DIR"
|
|
MIN_FREE_GB=20
|
|
|
|
WINDOWS_ISO="$LAB_ISO_CACHE/SERVER_EVAL_x64FRE_en-us.iso"
|
|
VIRTIO_ISO="$LAB_ISO_CACHE/virtio-win.iso"
|
|
|
|
# ---------------------------------------------------------------- vms
|
|
# name ip ram_mb disk_gb vcpu role (= windows/roles/<role>.ps1)
|
|
VMS=$(cat <<'EOF'
|
|
dc01 10.10.10.10 4096 36 2 dc01
|
|
fs01 10.10.10.20 4096 36 2 fs01
|
|
ws01 10.10.10.31 4096 36 2 ws01
|
|
EOF
|
|
)
|
|
|
|
# ---------------------------------------------------------------- windows
|
|
LAB_ADMIN_PASSWORD="${LAB_ADMIN_PASSWORD:-Norbourg!2026}"
|
|
LAB_SAFE_MODE_PASSWORD="${LAB_SAFE_MODE_PASSWORD:-NorbourgDsrm!2026}"
|
|
WINDOWS_IMAGE_INDEX=2 # 2 = Standard, Desktop Experience
|
|
|
|
# ---------------------------------------------------------------- tuning
|
|
DISK_FILL_RATIO=30
|
|
ISO_BUDGET_GB=8
|
|
BUILD_TIMEOUT=2700
|
|
|
|
# ---------------------------------------------------------------- kali
|
|
# One attacker VM per participant, configured through the guest agent and
|
|
# reached through the Proxmox web console. No client-side setup.
|
|
KALI_COUNT=5
|
|
KALI_RAM=2048
|
|
KALI_VCPU=2
|
|
KALI_IP_BASE=41 # 10.10.10.41 .. .4N, outside the DHCP pool
|
|
KALI_VMID_BASE=1300 # template at +90 (windows templates use 1200+)
|
|
KALI_LINKED_CLONE=1 # 0 = full copies (needs more disk)
|
|
KALI_ARCHIVE_URL="https://cdimage.kali.org/kali-2026.3/kali-linux-2026.3-qemu-amd64.7z"
|
|
# Bake xrdp into the Kali template (GUI over RDP, port 3389 inside the seat).
|
|
# Needs Internet on the PVE host for one apt install, done through a temporary
|
|
# squid that only accepts the probe address. Set to 0 to skip.
|
|
KALI_XRDP=1
|
|
|
|
# ---------------------------------------------------------------- participants
|
|
# WireGuard endpoint for the router VM option; peers/ writes configs here.
|
|
WG_PORT=51820
|
|
WG_ENDPOINT="" # leave empty to print the LAN address instead
|
|
WG_DIR="${WG_DIR:-$HOME/norbourg-peers}"
|
|
WG_LAB_IFACE="eth1" # interface name inside the router VM
|