From 98c795457f8f2a1b8913a78728744eca521852d0 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Wed, 1 Jul 2026 12:57:59 +0000 Subject: [PATCH] wizard: offer auto/CIDR list for offsite, default 10.4.0.0/22,auto --- install-stack.sh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install-stack.sh b/install-stack.sh index d60760b..92aa9aa 100755 --- a/install-stack.sh +++ b/install-stack.sh @@ -145,10 +145,13 @@ collect_config() { OFFICE_IP=$(whiptail --title "Hotel Manage — Site Config" \ --inputbox \ -"Office IP / CIDR / DDNS hostname for offsite restriction. -Examples: 203.0.113.5 10.4.0.0/22 hotel.dyndns.org -Type 'disabled' to allow access from anywhere:" \ - 11 64 "disabled" 3>&1 1>&2 2>&3) || exit 0 +"Onsite matcher(s) for offsite restriction — comma-separated, any match = onsite. +Each can be: an IP, a CIDR, a DDNS hostname, or 'auto' (self-detect the site's +public IP — no DDNS service needed). 'disabled' allows access from anywhere. + +Recommended for a dynamic public IP: 10.4.0.0/22,auto + (LAN clients match the CIDR; public-IP/hairpin clients match auto)" \ + 13 72 "10.4.0.0/22,auto" 3>&1 1>&2 2>&3) || exit 0 ADMIN_EMAIL=$(whiptail --title "Hotel Manage — Admin Account" \ --inputbox "Admin user email:" 8 52 "" 3>&1 1>&2 2>&3) || exit 0