fix: update IPs to .225, NPM ref to .226, DNS to .224

This commit is contained in:
2026-05-27 11:53:37 +10:00
parent fc1683a54c
commit 8e0499ed3c
+16 -17
View File
@@ -6,30 +6,28 @@
# LXC container on Proxmox. Guacamole was using 25% CPU and 9% RAM # LXC container on Proxmox. Guacamole was using 25% CPU and 9% RAM
# inside the HAOS VM — this frees those resources. # inside the HAOS VM — this frees those resources.
# #
# Uses Docker Compose for clean deployment of: # Run this script on the Proxmox host (HAL-HOST / 10.0.0.240) as root.
# - guacamole (web frontend)
# - guacd (connection daemon)
# - postgres (user/connection database)
# #
# Run this script on the Proxmox host (HAL-HOST) as root. # Network:
# # - Proxmox host: 10.0.0.240
# Network assumptions: # - HAOS VM: 10.0.0.55
# - Guacamole LXC: 10.0.0.225 (new - adjust if taken) # - OPNsense: 10.0.0.254
# - Gateway: 10.0.0.254 # - AdGuard LXC: 10.0.0.224 (CT 120)
# - NPM: 10.0.0.226 (for reverse proxy) # - Guacamole LXC: 10.0.0.225 (CT 121)
# - NPM LXC: 10.0.0.226 (CT 122)
# ===================================================================== # =====================================================================
set -euo pipefail set -euo pipefail
# --- Configuration --- # --- Configuration ---
CT_ID="${1:-121}" CT_ID="121"
CT_NAME="guacamole" CT_NAME="guacamole"
CT_IP="10.0.0.225/24" CT_IP="10.0.0.225/24"
CT_GW="10.0.0.254" CT_GW="10.0.0.254"
CT_STORAGE="local-lvm" CT_STORAGE="local-lvm"
CT_TEMPLATE="local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst" CT_TEMPLATE="local:vztmpl/debian-12-standard_12.7-1_amd64.tar.zst"
CT_MEMORY=2048 CT_MEMORY=1024
CT_SWAP=512 CT_SWAP=256
CT_CORES=2 CT_CORES=2
CT_DISK="8" CT_DISK="8"
BRIDGE="vmbr0" BRIDGE="vmbr0"
@@ -59,12 +57,12 @@ pct create "${CT_ID}" "${CT_TEMPLATE}" \
--cores "${CT_CORES}" \ --cores "${CT_CORES}" \
--rootfs "${CT_STORAGE}:${CT_DISK}" \ --rootfs "${CT_STORAGE}:${CT_DISK}" \
--net0 "name=eth0,bridge=${BRIDGE},ip=${CT_IP},gw=${CT_GW},firewall=0" \ --net0 "name=eth0,bridge=${BRIDGE},ip=${CT_IP},gw=${CT_GW},firewall=0" \
--nameserver "1.1.1.1" \ --nameserver "10.0.0.224" \
--onboot 1 \ --onboot 1 \
--start 1 \ --start 1 \
--unprivileged 1 \ --unprivileged 1 \
--features "nesting=1,keyctl=1" \ --features "nesting=1,keyctl=1" \
--startup "order=2,up=15" --startup "order=3,up=15"
echo "[3/8] Waiting for container to start..." echo "[3/8] Waiting for container to start..."
sleep 5 sleep 5
@@ -197,8 +195,9 @@ echo " MIGRATION STEPS:"
echo " 1. Login at http://${CT_IP_CLEAN}:8080/guacamole/" echo " 1. Login at http://${CT_IP_CLEAN}:8080/guacamole/"
echo " 2. Change admin password immediately" echo " 2. Change admin password immediately"
echo " 3. Re-create RDP connections (Settings > Connections)" echo " 3. Re-create RDP connections (Settings > Connections)"
echo " 4. Set up NPM proxy: guac.hideawaygaming.com.au" echo " 4. Set up NPM proxy (10.0.0.226):"
echo " Forward: http://${CT_IP_CLEAN}:8080 (enable WebSocket!)" echo " guac.hideawaygaming.com.au -> http://${CT_IP_CLEAN}:8080"
echo " Enable WebSocket support (critical for RDP)"
echo " 5. Test all RDP connections" echo " 5. Test all RDP connections"
echo " 6. Stop HA Guacamole add-on" echo " 6. Stop HA Guacamole add-on"
echo "" echo ""