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.


| Field | What it means |
|---|---|
| Description | Name of the tunnel in the list and on the firewall. Required. |
| Local address | This firewall's own end of the tunnel: an IP address, a host name or %any. |
| Remote address | The address of the peer. |
| IKE version | IKEv2 (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 identity | The 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 identity | The identity expected from the peer (optional). It has to match the peer's local identity. |
| Local network, Remote network | The networks the tunnel carries, in CIDR notation (several, comma-separated). Required. |
| Pre-shared key | The shared secret. Required when you create the tunnel. When you edit, leave it empty to keep the stored key. |
| Tunnel active | Off writes the tunnel to the firewall but disabled. |
| Device groups, Additional target hosts | Where 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).