OPNexusdocs

IPsec tunnel fields

The form VPN › IPsec VPN › New tunnel describes one site-to-site tunnel with a pre-shared key: one connection, one pair of identities and one phase 2 (one local and one remote network). OPNexus writes these objects on every target firewall: the connection, the local and remote identity, the child (phase 2) and the pre-shared key.

The IPsec tunnel form.The IPsec tunnel form.
The IPsec tunnel form.
FieldWhat it means
DescriptionName of the tunnel in the list and on the firewall. Required.
Local addressThis firewall's own end of the tunnel: an IP address, a host name or %any.
Remote addressThe address of the peer.
IKE versionIKEv2 (default), IKEv1 or IKEv1+IKEv2.
Proposal (phase 1)Ciphers for the key exchange. default (preset) uses the firewall's own default list; you can enter a suite such as aes256-sha256-modp2048.
ESP proposal (phase 2)Ciphers for the data traffic, same notation. default is preset.
Local identityThe IKE identity this side presents, for example its public IP. Required. It is also the identifier of the pre-shared key, so it must match what the peer expects as the remote identity.
Remote identityThe identity expected from the peer (optional). It has to match the peer's local identity.
Local network, Remote networkThe networks the tunnel carries, in CIDR notation (several, comma-separated). Required.
Pre-shared keyThe shared secret. Required when you create the tunnel. When you edit, leave it empty to keep the stored key.
Tunnel activeOff writes the tunnel to the firewall but disabled.
Device groups, Additional target hostsWhere the tunnel is rolled out. A group and a single host can be combined; a firewall that is both counts once.

The pre-shared key is stored as a file in its own volume, never in the database. OPNsense matches the key to the tunnel by the two identities, not by a link, so give every tunnel its own identity pair. Delete removes connection, identities, phase 2 and key from all target firewalls and reloads the IPsec service. Not covered: certificate or EAP authentication, several phase 2 entries per tunnel, address pools (see the table above).