Overview
WireGuird manages WireGuard tunnel configurations stored in/etc/wireguard/. The tunnel list displays all .conf files found in this directory, providing a central location to manage your VPN connections.
Understanding the Tunnel List
The tunnel list is the main interface for managing your configurations. Each tunnel displays:- Connection status icon: Green dot for active connections, gray dot for inactive tunnels
- Tunnel name: The filename without the
.confextension
The tunnel list automatically refreshes after adding, editing, or deleting tunnels.
Adding Tunnels
WireGuird supports multiple methods for adding tunnel configurations to your system.Importing Configuration Files
Select configuration files
Choose one or more files from the file picker dialog. WireGuird accepts:
- Individual
.conffiles .ziparchives containing multiple configurations
*.conf and *.zip files.Multiple File Import
You can select multiple.conf files simultaneously in the import dialog. Each file will be processed and added to your tunnel list.
When importing a
.zip archive, WireGuird extracts all .conf files from the archive and copies them to the WireGuard configuration directory.Editing Tunnels
The built-in editor allows you to modify tunnel configurations directly within the application.Opening the Editor
- Select a tunnel from the tunnel list
- Click the Edit Tunnel button (button_edit_tunnel)
- The editor window appears with syntax highlighting
Editor Features
The editor provides syntax highlighting for WireGuard configuration files:- Section headers (
[Interface],[Peer]) appear in green - Property names (
PrivateKey,PublicKey,Address,DNS,AllowedIPs,Endpoint,PostUp,PreDown,PreSharedKey,PersistentKeepalive) appear in purple - The peer’s PublicKey is extracted and displayed in a separate entry field for easy reference
Saving Changes
Modify the configuration
Edit the tunnel configuration in the text view. Any changes mark the editor as modified.
Rename the tunnel (optional)
Change the tunnel name in the editor_name entry field. The file will be renamed when you save.
Deleting Tunnels
Removing tunnel configurations is permanent and requires confirmation.Tunnel Naming Requirements
WireGuard has specific requirements for tunnel names due to Linux network interface naming limitations:Maximum Name Length
Tunnel names must be 15 characters or fewer. This is enforced by WireGuird when you attempt to connect to a tunnel.This limitation comes from Linux kernel restrictions on network interface names. The tunnel name becomes the interface name (e.g.,
wg0, office-vpn) when the tunnel is activated.Naming Best Practices
- Use descriptive but concise names (e.g.,
office,home-server,eu-vpn) - Avoid spaces and special characters
- Use hyphens or underscores for multi-word names
- Keep names under 15 characters to ensure compatibility
Tunnel Configuration Format
WireGuird reads standard WireGuard configuration files with the following structure:PostUp, PreDown, and PreSharedKey.
Refreshing the Tunnel List
WireGuird automatically scans for tunnels at startup and after add/edit/delete operations. To manually refresh:- Press F5 on your keyboard while the main window is focused
- Check the WireGuard logs for the message: “Scanning tunnels from keyboard command (F5)”
.conf files in /etc/wireguard/ outside of WireGuird.