Add WireGuard tunnel

Bring up a WireGuard interface ({{NEXT_WG}} is allocated automatically). A server keypair is created in the secret store and referenced by name — the private key never leaves the router. After it is up, copy the server public key from the interface page to share with peers.

{{#ERROR}}
{{ERROR}}
{{/ERROR}} {{#NO_SECRET}}
Creating a WireGuard tunnel also needs secret:*:write (it provisions a server key). Your account has interface write but not secret write.
{{/NO_SECRET}} {{#PENDING}}

Confirm WireGuard tunnel

{{PENDING_IFACE}} is live but routes management traffic, so it is awaiting confirmation and reverts automatically in {{PENDING_REMAINING}} seconds unless you keep it. If you lose connectivity, do nothing — the tunnel backs out by itself at the deadline.

{{/PENDING}} {{#FORM}}
Server key

The address this router uses inside the tunnel, in CIDR form.

Peers

Each remote endpoint: its public key, the IPs it is allowed to send/receive through the tunnel, and (optionally) where to reach it. Peers are optional here — leave them blank to bring the interface up with just your key, copy your public key from the interface page, and add peers there once you have the remote's key.

{{PEER_ROWS}}
{{#WAN_CONFIRM}} {{/WAN_CONFIRM}}
{{/FORM}}