Set up WireGuard and OpenVPN
Create, check and automatically reconnect outbound tunnels for selected destination networks.

What is connected?
VPN management creates outbound NetworkManager profiles for WireGuard or OpenVPN. A tunnel is used for specifically entered remote destination networks. Local LAN/Wi-Fi connections and the Pi’s existing Internet access retain their previous routes. This page does not set up an incoming VPN server.
Several profiles can operate simultaneously if their destination networks do not conflict. Management checks overlaps with directly connected networks and already active panel profiles. For a remote station, for example, select its actual subnet; an arbitrary default route is not the intended substitute for destination selection here.
WireGuard
Import a .conf file or choose Enter settings. Manual mode requires your own tunnel address, peer endpoint, the peer’s public key and remote destination networks. If your private key is left blank, the Pi generates a key pair. The Pi’s public key can then be expanded in the saved profile and must be authorized at the peer.
Save the profile and select Connect. Tunnel active · awaiting handshake means that the local setup is active but no confirmed exchange with the peer has occurred yet. Check endpoint, keys, reachability and peer configuration. A displayed handshake confirms exchange with the peer; then also test the intended destination network.
OpenVPN
Import a TLS client profile as .ovpn. Certificates and keys must be present as embedded blocks; add a username, password or key password as required by the profile. The importer reports unsupported options with line numbers. The interface does not automatically provide missing certificates.
Editing and reconnecting
Disconnect a profile before editing it. The name and destination networks of an existing profile can be changed. A different tunnel configuration requires a suitably configured new profile. Connect automatically starts the connection and enables reconnection, including after restarts. Disconnect pauses this automation; Connect resumes it. Retry intervals increase from 10 to 300 seconds.
Private keys and passwords are not returned to the browser after saving. VPN management is separate from the dedicated Hamnet/HamCloud setup in the WAP section.
Settings in detail
- Profile name
A name of your choice, up to 80 characters, to distinguish multiple tunnels. Can be changed later while the profile is disconnected.
- Protocol
WireGuard or OpenVPN. Determines the import format and input fields. Editing an existing profile does not change its protocol.
- Setup
For WireGuard, choose file import or manual entry. OpenVPN imports a client configuration.
- Configuration file
WireGuard
.confor OpenVPN.ovpn, up to 192 KiB. OpenVPN requires an embedded CA and, where applicable, a client certificate and key. Any unsupported option must be resolved in the profile.- Own tunnel address with prefix
The address assigned to the Pi inside the WireGuard tunnel, including prefix length. It is neither the peer’s public address nor the entire remote destination network.
- Peer endpoint with port
Reachable hostname or IP address of the WireGuard peer, including port, for example
vpn.example.org:51820. Remote LAN networks are specified separately.- Peer public key
The peer’s WireGuard public key. Do not confuse it with the Pi’s public key. The associated private key remains on the peer.
- Own private key
Optional WireGuard private key. Leave blank to generate a new key pair on the Pi when creating the profile. Afterwards, only the public part can be read in the panel.
- Pre-shared key
Optional additional WireGuard pre-shared key. If used, both sides must know the same value. It does not replace the public peer keys.
- Keepalive in seconds
Optional periodic packet to maintain NAT state. 0 disables the periodic setting. Configure it to suit the peer; it is not a connection time limit.
- VPN username
Required only for an OpenVPN profile using the corresponding authentication. Must match the VPN provider’s or server’s credentials.
- VPN password
OpenVPN login password, if required by the profile. Saved, but not subsequently displayed in the browser.
- Private key password
Unlocks an encrypted private key in the imported OpenVPN profile. Distinct from the VPN user password.
- Remote destination networks (CIDR)
IPv4/IPv6 destination networks, separated by commas or newlines. During import, an empty entry can adopt specific routes from the file. For default routes or missing destinations, the interface explicitly requires the intended networks; WireGuard destinations must be covered by AllowedIPs.
- Connect automatically
Enables or disables reconnection for this profile. Enabling it starts the tunnel. Manual disconnection pauses the automation; Connect resumes it.
- Refresh
Reads current tunnel and profile state. An active WireGuard tunnel without a handshake must still be distinguished from a confirmed peer connection.
- Cancel
Ends editing and resets the form. Does not stop an already running tunnel.
- Connect
Starts the profile; if automation was manually paused, the command resumes it. Afterwards, check tunnel state and, for WireGuard, the handshake.
- Disconnect
Disconnects the tunnel and pauses enabled reconnection automation. A subsequent Connect resumes it.
- Edit
Opens a disconnected profile to change its name and destination networks. Protocol and key material are not arbitrarily replaced in this process.
- Delete
Removes a disconnected profile after confirmation. A tunnel still in use or currently disconnecting is not simply overwritten to do this.
