VPN: IPsec, OpenVPN, WireGuard
VPN objects (VPN › IPsec VPN, OpenVPN, WireGuard) are defined centrally and deployed to hosts or device groups, for example the same tunnel on both nodes of an HA pair. The flow is draft → preview → push; history and deleting work as with rules.
No automatic rollback for VPN. Reloading the VPN service can cut exactly the connection through which OPNexus reaches the firewall, and an automatic rollback could then no longer reach it. Instead of a deceptive safety net, OPNexus shows a clear warning before every push and requires two steps ("Warning understood", then "Yes, deploy now"). If a step fails, the partial state already written remains, and the deployment shows "Error" with a plain-text message. If only the reload fails, the message reads: "Configuration was written, but service reload was not confirmed — check reachability manually."
Key material (pre-shared keys, static keys, WireGuard keys) is never stored in the database but as a file in dedicated volumes. When editing, leave the field empty to keep the existing key.
| IPsec | OpenVPN | WireGuard | |
|---|---|---|---|
| Scope | site-to-site tunnel | server and client instances | one server and one peer per tunnel |
| Authentication | pre-shared key | certificate and CA per target host, optional TLS auth/crypt key | key pair, optional peer PSK |
| Not included | certificate/EAP, several child SAs, pools | crypt-v2, authentication servers | multi-peer hub, key generator, live status |
Notes:
- OpenVPN: you choose certificate and CA per target host from its own trust store (the UUIDs are host-local). If the choice is missing for a target, the push aborts without writing anything.
- WireGuard: you supply the server private key, server public key and peer public key yourself. In OPNsense enable VPN › WireGuard › General once before you rely on pushed tunnels.
Test VPN rollouts first on a non-production firewall.
If a deployment breaks off midway (network gone, OPNexus restart), an entry with the status "Error" and the note "Deployment interrupted" remains, together with all identifiers that the firewall had assigned up to then. Deploying again continues from there instead of creating objects twice. Per VPN only one deployment or removal runs at a time; a second one is rejected with "already running".