Overview
WireGuird provides built-in tools for importing WireGuard configuration files and exporting your tunnel collection as zip archives. This makes it easy to backup your VPN configurations or migrate them between systems.Importing Configuration Files
WireGuird supports importing both individual configuration files and zip archives containing multiple tunnels.Supported Import Formats
.conffiles: Standard WireGuard configuration format.ziparchives: Compressed files containing one or more.conffiles
Import Process
Open the import dialog
Click the Add Tunnel button in the main WireGuird window.A native file chooser dialog opens with the title: “Wireguird - Choose tunnel files (*.conf, *.zip)”
Select files
The file picker is pre-filtered to show only:
- Files ending in
.conf - Files ending in
.zip
- Ctrl+Click to select multiple individual files
- Shift+Click to select a range of files
Confirm import
Click OK to import the selected files.WireGuird processes each file:
.conffiles are copied directly to/etc/wireguard/.ziparchives are extracted (see below)
Imported configuration files are copied to
/etc/wireguard/, the standard location for WireGuard configurations on Linux. The original files remain unchanged.Importing from Zip Archives
Zip archives are particularly useful for importing multiple tunnel configurations at once.Zip Archive Structure
WireGuird extracts all.conf files from zip archives, regardless of their directory structure:
Extraction Process
When you import a zip file:Files are extracted
Each
.conf file is extracted and written to /etc/wireguard/ with its original filename.Directory structure within the zip archive is not preserved. All
.conf files are extracted directly to /etc/wireguard/ using their filename only.Handling Duplicate Names
If you import a.conf file with the same name as an existing tunnel:
- The existing file will be overwritten
- No confirmation dialog is shown
- Make sure to backup important configurations before importing
Exporting Tunnels
WireGuird can export all your tunnel configurations as a single zip archive for backup or migration purposes.Export Process
Click Export button
Click the Zip Tunnels button (button_zip_tunnel) in the main window.A save dialog opens with the title: “Wireguird - zip tunnels -> Save zip file”
Choose save location
Navigate to your desired save location and optionally modify the filename.Default filename format:
wg_tunnels_[day]_[month]_[year].zipExample: wg_tunnels_5_March_2026.zipConfirm overwrite (if needed)
If a file with the same name exists, a confirmation dialog asks if you want to overwrite it.
What Gets Exported
The export function creates a complete backup of your tunnel configurations:- All
.conffiles in/etc/wireguard/are included - Files maintain their original names
- File permissions are preserved
- The zip archive is organized with all configs in a single directory
Archive Structure
The exported zip file has the following structure:The zip archive contains a root directory named after the zip file (without extension), with all configuration files inside. This structure is compatible with WireGuird’s import function.
Backup Best Practices
Regular Backups
Create regular backups of your tunnel configurations:- Before major changes: Export before editing multiple tunnels
- After adding tunnels: Backup when you add new VPN connections
- Periodic snapshots: Create monthly or weekly backups for peace of mind
Backup Storage
- Local Storage
- Cloud Storage
Store zip exports on:
- External USB drives
- Network-attached storage (NAS)
- Separate partitions or drives
Encrypting Exports
To securely store your exported tunnels:Migrating Between Systems
Use export and import to move your tunnel configurations to a new machine:Export from old system
- Open WireGuird on your current system
- Click Zip Tunnels and save the archive
- Copy the zip file to your new system (USB drive, cloud, network transfer)
Import to new system
- Open WireGuird on the new system
- Click Add Tunnel
- Select your exported zip archive
- All tunnels appear in the tunnel list
WireGuard configurations are portable between Linux systems. However, some configurations with system-specific
PostUp or PreDown commands may need adjustment on the new system.Manual Import/Export
Advanced users can also manage configurations manually:Manual Import
Manual Export
WireGuird automatically detects configuration files in
/etc/wireguard/ regardless of how they were added. Press F5 to refresh the tunnel list after manual changes.Troubleshooting Import/Export Issues
Import Fails
If import doesn’t work:- Check file permissions: Ensure WireGuird has write access to
/etc/wireguard/ - Verify file format: Make sure files are valid WireGuard
.confformat - Check zip structure: Ensure the zip contains
.conffiles (not just folders) - Look for errors: Check the WireGuard logs panel for error messages
Export Fails
If export doesn’t work:- Check destination permissions: Ensure you have write access to the save location
- Verify disk space: Ensure sufficient space for the zip archive
- Check source files: Ensure
/etc/wireguard/contains.conffiles
Missing Tunnels After Import
- Press F5 to manually refresh the tunnel list
- Check
/etc/wireguard/to verify files were copied - Ensure filenames end in
.conf(case-sensitive) - Check file permissions:
ls -la /etc/wireguard/
