Hotspot Policy
os-hotspotpolicy · Users and access
One policy for each captive portal zone: where its logged-in clients may go, how fast each may download and upload, and whether Suricata inspects them.
In the menu
- With os-xgs-npu installed: XGS: Hotspot Policy
- Without os-xgs-npu: Services: Captive Portal: Zone Policy
For each zone: the destinations its clients may reach past this firewall - addresses, networks, interfaces' networks, aliases or any; a download and an upload limit for each client, from 0.1 to 4000 Mbit/s, each client a queue of its own; and Inspect with Suricata, off by default, which hands what they send, and the replies, to the Intrusion Detection in IPS mode. What they reach on the firewall itself - its web GUI, DNS, the portal's own pages - is never decided by a policy.
On an XGS appliance a limit holds only for connections that stay with the host: the plugin's passes carry a pf tag, and the page asks for it to be named in XGS: Settings, Never offloaded by a rule's tag, and says whether it is. With it named, a 20 Mbit/s download measured 19.4 Mbit/s on the second XGS 3300.
Features
-
Where clients may go
Each zone's destinations past this firewall, as passes the plugin registers.
-
How fast
A download and an upload limit for each client of a zone, empty for none.
-
Inspection
What a zone's clients send handed to Suricata in IPS mode, zone by zone.
-
On an XGS appliance
A card and a line say whether the tag is named in XGS: Settings.
Install and update
Its first release is v1.0.0, of 2026-12-02. It is also installed by hand, as root, on an XGS appliance or on any other OPNsense: from a checkout of the repository with sh install/install.sh, which puts the page under XGS with os-xgs-npu and under Services without it, and keeps the settings when run again; sh install/uninstall.sh takes it away. From its first signed release, XGS: Updates installs and updates it from its Plugins tab, with an os-xgs-npu newer than 0.2.0-alpha.1.3. It is not in the OPNsense plugin repository.
Limits, and what is not tested yet
- Through the XGS 136's ports: the limits and the inspection there are not run.
- IPv6 inspection: the plugin does not divert an IPv6 pass yet.
- Many clients behind one pipe, and a plain OPNsense.
- A connection made before a filter reload ran below its limit after it on the second XGS 3300; not explained yet.
- More, each with its reason: the README's Not yet, and why.
Repository
First release: 2026-12-02
The discussion of this page is held in the project's GitHub Discussions. Showing it here loads giscus from giscus.app and GitHub, and writing in it needs a GitHub account - what that means.