OPNexusdocs

WireGuard tunnel fields

The form VPN › WireGuard › New tunnel creates a WireGuard instance (the "server", i.e. the local interface) with exactly one peer. Both parts are on the form.

The WireGuard tunnel form.The WireGuard tunnel form.
The WireGuard tunnel form.
FieldWhat it means
Interface nameName of the WireGuard instance on the firewall: letters, digits, ., -, _, up to 64 characters.
Listen portPreset 51820.
Tunnel networkThe address of the firewall's WireGuard interface in CIDR notation. Required.
DNS, MTUOptional.
Server public keyThe public key of the local instance. Required.
Server private keyThe private key of the local instance. Required when you create the tunnel; when you edit, leave it empty to keep the stored key. It is stored as a file in its own volume.
Peer nameName of the peer, same character rules as the interface name.
Allowed IPsThe networks that are routed to this peer, in CIDR notation. Required.
Peer public keyThe public key of the peer. Required.
Endpoint address, Endpoint portWhere this firewall dials the peer. Leave both empty if the peer only ever connects in; the port is required as soon as an address is set.
KeepaliveSeconds, optional (useful behind NAT).
Extra pre-shared keyWireGuard's own pre-shared key for this peer, optional (not the IPsec key).
Tunnel active, Device groups, Additional target hostsAs for IPsec.

OPNexus does not generate WireGuard keys: create the pair where the peer is configured and enter the public keys here. Switch WireGuard on once in OPNsense under VPN › WireGuard › General before you rely on a pushed tunnel.