24.3. Firewall Mode Stats
Statistics counters for the firewall mode cover:
drop reasons:
stats.firewall.drop_reasondiscarded alerts:
stats.firewall.discarded_alertsblocked packets:
stats.firewall.blockedaccepted packets:
stats.firewall.acceptedrejected packets:
stats.firewall.rejected
These will be present in the stats logs if the engine is run in firewall mode, only.
24.3.1. Drop reasons
If a drop was caused by the firewall, the corresponding counter will be incremented. The existing ones are:
rules: a firewall rule triggered the drop
default_packet_policy: drop caused by the default fail closed firewall behavior, on the packet hook level
default_app_policy: drop caused by the default fail close firewall behavior, on the app-layer hook level
pre_flow_hook: drop caused by the pre-flow hook
pre_stream_hook: drop caused by the pre-stream hook
flow_drop: the whole flow was dropped after a firewall action.
24.3.2. Discarded alerts
When the alert queue is full for a firewall rule match, the alert is discarded.
These are reported with the counter stats.firewall.discarded_alerts.
Note that the drop may be caused by non-firewall rules.
The rule's primary action as well as other secondary actions will be applied to the traffic as normal.