Aliases and NAT
Aliases (host, network, port, group, MAC, ASN) are maintained centrally and follow the same flow with preview, confirmation and rollback as rules.
Used by. The button Used by … on an alias lists the centrally managed rules, port forwards, 1:1 and outbound NAT entries, hierarchy rules and other aliases that refer to it (rules that only exist on a firewall are not included). An alias that is still used cannot be deleted; the refusal names what uses it.
NAT (Policy › NAT) comprises port forward, 1:1 NAT and outbound NAT with separate forms. All three have draft, preview, push, confirmation, history, duplicate, targets (groups, hosts, hierarchy), rollback retry and a live view of the entries active on the firewall, separated into automatic and configured ones.
- Port forward does not create a filter rule: a matching rule must exist separately.
- Outbound mode: OPNexus reads the global mode and checks it before every push.
Only
hybridoradvanced(manual) allow manual rules; withautomatic,disabledor an unknown mode the push aborts withOUTBOUND_MODE_BLOCKS_PUSH. OPNexus never changes the global mode. Set it in OPNsense under Firewall › NAT › Outbound to "Hybrid". - NAT drift detection compares the nodes of a cluster and reports deviations.
In this chapter#
- Site variables — With variables you maintain an object once and deploy it to firewalls with different networks. Write {{NAME}} (capital letters, digits and _, starting with a letter) in a
- Interface roles — Two firewalls do not always have the same interfaces: one has a guest VLAN as opt3, the other none at all, or the same VLAN is called opt5 there. Because the OPNsense ide