Application Control
os-appcontrol · Protection
Names each connection's application with nDPI and acts on it: pf tables for rules and gateways, blocking, and Suricata rules.
In the menu
- With os-xgs-npu installed: XGS: Application Control
- Without os-xgs-npu: Firewall: Application Control
A service reads a copy of what the internal interfaces carry and names each connection's application with nDPI's ndpiReader, from OPNsense's own package ndpi, which the installer adds when it is not there. It stands in no connection's way: stopped or failing, it changes no traffic. Each server it names goes into the pf table of its category, and of its application where one is chosen - aliases in Firewall: Aliases that a rule can name.
An application chosen in Blocked applications is blocked: a rule of the plugin's on its table stops new connections, and the connections nDPI names as it are cut, on the coprocessor first where os-xgs-npu is installed. A server goes into a blocked application's table only when the firewall's own resolver gives its address for the name the connection carried. The Rules tab blocks or alerts for one source, with Suricata rules for OPNsense's Intrusion Detection.
Features
-
Categories and applications
A table for every category of the installed nDPI and one for each application chosen; an address leaves its table after the alias's Expire, an hour by default.
-
Blocking
Off until an application is chosen; the Applications tab says, for each, the connections cut and the packets its rules stopped.
-
Rules by source
Block or Alert for any source: an interface's network, an alias, an address or a network, or every device but one of them.
-
Unknown
The connections nDPI could not name, or named by their protocol alone, each with the server name and the JA4 fingerprint its client sent.
-
A gateway by application
The rules of Firewall: Rules that send an application's or a category's table by a gateway, with what pf holds of each; the plugin writes no rule.
Install and update
Since os-xgs-npu 0.2.0-alpha.1, XGS: Updates lists it on its Plugins tab, where it is installed and updated from its signed releases, and an update of the project installs it on an appliance that never had it; nothing is updated on its own. 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 Firewall without it, and keeps the settings when run again; a copy installed this way is updated by its own self-update.py, and sh install/uninstall.sh takes it away. It is not in the OPNsense plugin repository.
Limits, and what is not tested yet
- The page in a browser: the plugin ran on the second XGS 3300, the XGS 136 and a plain OPNsense, driven through the calls the page makes.
- Above 1 Gbit/s: the service reads at most 2,000,000 packets an interface in a window, and the rest are not named.
- The first connection to a new server is not blocked: its server joins the table once a connection to it has been named.
- A whole category blocked: only applications can be chosen.
- More, each with its reason: the README's Not yet, and why.
Repository
First release: 2026-11-20
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.