OPNsense Forum

English Forums => 25.7, 25.10 Series => Topic started by: JimBob on November 20, 2025, 09:27:49 PM

Title: Captive-Portal Museum Application: Can't Define the Template File
Post by: JimBob on November 20, 2025, 09:27:49 PM
Hi! Help! I'm using OPNsense 25.7-amd64 FreeBSD 14.3-RELEASE-p1 OpenSSL 3.0.17 on an Intel NUK11PAH to serve, via Captive Portal, a museum "assistant". The idea is to have an offline 10x10 matrix of buttons, so that the visitor can press buttons (e.g. "37") shown next to a display and receive audio, audio/video, or web page information for that exhibit. Although offline and unprotected by password, I want the visitor to be connected to the button matrix, without warnings of being offline (by spoofing the sites browsers check to verify online status) or warnings that unpassword-protected access is risky (I believe the Captive Portal process takes care of that), and have the browser immediately go to the button matrix, which is the landing page for the captive portal. I'm well on my way to having this operational, thanks to ChatGPT, but one issue has us both stumped. GPT directs me to upload my landing page by going to Sidebar -> Services -> Captive Portal -> Administration -> Templates (tab) and click the red "+" (Add) icon, bringing up a popup. I'm told to provide a name in the "Template name" textbox (I provide "A") and browse to my HTML file containing the 10X10 matrix of buttons (I do: it is called "index.html"). But when I click the "Upload" button, the popup disappears, but no template is added to the list, and no file is added to /usr/local/etc/captiveportal or anywhere else I can find. It's as if the popup did nothing. Once I have a template defined, I think my next step is to go to the "Zones" tab, create/edit a zone, and place the template file's name in the "Custom template box.

Where am I going wrong?