Overview
WireGuird uses thewg-quick command-line tool to activate and deactivate WireGuard tunnels. The application provides a graphical interface for managing tunnel connections with real-time status monitoring.
Activating a Tunnel
Connecting to a WireGuard VPN tunnel is straightforward:Select a tunnel
Click on a tunnel from the tunnel list. The tunnel details panel populates with configuration information.
Click Activate
Click the Activate button (button_change_state). The button label changes based on the tunnel’s current state.
Behind the Scenes
When you activate a tunnel, WireGuird executes:- Creates a network interface with the tunnel name
- Configures the interface with the IP address from your configuration
- Sets up routing rules based on
AllowedIPs - Executes any
PostUpcommands defined in your configuration
The application logs all
wg-quick output to the WireGuard logs panel, including any errors or status messages.Deactivating a Tunnel
Disconnecting from an active tunnel:Select the active tunnel
Click on the connected tunnel in the tunnel list (shown with a green icon).
Disconnect Command
- Removes the network interface
- Clears routing rules
- Executes any
PreDowncommands from your configuration - Terminates the secure connection to the peer
Understanding Connection Status
WireGuird provides multiple indicators for tunnel connection status:Visual Indicators
| Indicator | Status | Description |
|---|---|---|
| Green dot | Active | Tunnel is connected and interface is up |
| Gray dot | Inactive | Tunnel is configured but not connected |
| Header subtitle | Connection info | Shows “Connected to [name(s)]” or “Not connected!” |
| System tray icon | Overall status | wg_connected when any tunnel is active, wireguard_off otherwise |
| Button label | Available action | Shows “Activate”, “Deactivate”, or “unknown” |
Interface Information Panel
When a tunnel is selected and active, the interface panel displays:For inactive tunnels, the interface panel shows configuration values from the
.conf file. The public key and listen port are only available when the tunnel is active.Peer Information Panel
For active tunnels, real-time peer information is displayed:Real-Time Statistics
WireGuird updates peer statistics every second for the selected active tunnel:- Latest Handshake: Shows human-readable time (e.g., “2 minutes ago”, “30 seconds ago”)
- Transfer: Displays data transfer in human-readable format (e.g., “1.2 MB received, 450 KB sent”)
Statistics only update when the main window has focus and a tunnel is selected. The update ticker runs every second in the background.
Multiple Tunnel Connections
WireGuird can manage multiple simultaneous VPN connections, but this behavior is controlled by a setting.Single Tunnel Mode (Default)
When Multiple Tunnels is disabled (default):- Activating a new tunnel automatically deactivates all other active tunnels
- Only one VPN connection is active at a time
- The header shows: “Connected to [single-tunnel-name]“
Multiple Tunnel Mode
When Multiple Tunnels is enabled in settings:- Multiple tunnels can be active simultaneously
- Each tunnel maintains its own network interface
- The header shows: “Connected to [tunnel1], [tunnel2], [tunnel3]”
- Clicking Deactivate only disconnects the selected tunnel
Checking Active Tunnels
The application tracks active tunnels by querying the WireGuard control interface:Connection Logs
All connection and disconnection events are logged to the WireGuard logs panel:- Timestamps in
[DD/MMM/YY HH:MM:SS TZ]format - Log level (
INFOorERRORin red) - Connection status changes
- Any errors from
wg-quickwith full output
Troubleshooting Connection Issues
Tunnel Name Too Long Error
If you see an error like “Tunnel’s file name is too long (16), max length: 15”:- The tunnel name must be 15 characters or fewer
- Rename the tunnel configuration file in
/etc/wireguard/ - Or use the editor to rename it to a shorter name
wg-quick Errors
Ifwg-quick fails, error messages appear in:
- An error dialog with the full error message
- The WireGuard logs panel with the complete output
- Common issues include:
- Invalid private/public keys
- Network interface already exists
- Permission denied (requires root/sudo)
- Invalid IP address configuration
- DNS resolution failures for endpoints
Statistics Not Updating
If peer statistics aren’t updating:- Ensure the main window has focus (statistics only update when focused)
- Verify the tunnel is actually active (green icon)
- Check if handshake time is recent (should be within a few minutes)
- Look for error messages in the logs
Keyboard Shortcuts
- F5: Refresh tunnel list and rescan
/etc/wireguard/
The Activate/Deactivate button changes its label dynamically based on the selected tunnel’s current state, making it clear what action will be performed.
