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.


| Field | What it means |
|---|---|
| Interface name | Name of the WireGuard instance on the firewall: letters, digits, ., -, _, up to 64 characters. |
| Listen port | Preset 51820. |
| Tunnel network | The address of the firewall's WireGuard interface in CIDR notation. Required. |
| DNS, MTU | Optional. |
| Server public key | The public key of the local instance. Required. |
| Server private key | The 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 name | Name of the peer, same character rules as the interface name. |
| Allowed IPs | The networks that are routed to this peer, in CIDR notation. Required. |
| Peer public key | The public key of the peer. Required. |
| Endpoint address, Endpoint port | Where 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. |
| Keepalive | Seconds, optional (useful behind NAT). |
| Extra pre-shared key | WireGuard's own pre-shared key for this peer, optional (not the IPsec key). |
| Tunnel active, Device groups, Additional target hosts | As 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.