OPNexusdocs

Viewing the order, moving and editing rules

The Live across all hosts tab shows per firewall (an HA pair together, single firewalls on their own) all rules in the order in which the firewall evaluates them. A badge says where the rule comes from: Central (managed by OPNexus), Local only (created by hand on the firewall), Hierarchy (set by the policy hierarchy) or System (built in, visible only on request). For a pair, checkmarks show on which firewall the rule exists.

  • Moving: with the arrows (to the very top, one place up/down, to the end) or by dragging onto another rule (it lands before it; the "Drop here" area at the end of the table puts it at the end). Moving happens within a priority group (floating rules, rules per interface, interface groups); hierarchy rules and system rules cannot be moved. For a pair the move is applied on both firewalls.
  • On probation: the new order is live immediately but applies only on probation. A yellow notice shows the remaining time; Confirm makes it permanent (in the browser only, never via API token), Revert restores the old one immediately. Without confirmation OPNexus reverts it itself after the window (default 180 seconds, as with deploying). Several moves in a row count as one series: each new one renews the window, and the whole series is confirmed or reverted together, newest first. If reverting fails (e.g. firewall not reachable), OPNexus reports it as a notification; until it is resolved (revert again), further moves and deploying on this host are blocked.
  • Editing: a central rule opens the normal editor (preview, confirm, automatic rollback). A local-only rule is first adopted centrally for this (only an entry in OPNexus, nothing is written; for a pair it is linked on the second firewall) and then edited in the same way.
  • Identical rules on the firewalls of a pair are recognised by their content (description, interface, direction, protocol, source, destination, action), not by their ID.
  • Tags: the column Managed by shows who owns a rule: Central (OPNexus), Local only (created by hand, nothing wrong with that; adopt it to manage it centrally), Hierarchy or System. A small warning icon next to Central means that on a firewall of the pair OPNexus does not recognise the rule as its own: the rule ID it stored there is outdated. This typically happens when the primary pushes its rules to the secondary with OPNsense's own config sync (System › High Availability, item "Firewall rules"). The rule is in place; only the record is stale. A notice above the table offers Check and repair: the dialog lists what would change and whether it is certain (same rule ID as on the partner) or by content (same description and values); repairing changes OPNexus's own records only and never writes to a firewall. Certain cases are repaired automatically by the regular observation, each as an audit entry "Link repaired". A rule that carries the partner's rule ID but differs from the central rule (changed by hand on the primary and copied by the sync) is offered in the dialog as "content differs" with the differing fields; it is only repaired on request, and deploying the central rule later overwrites the changes on the firewall.