WireGuard
Managing your WireGuard tunnels
Introduction
XPipe can manage your local WireGuard interfaces, similar to the official WireGuard GUI application. The main advantages of using XPipe for this are:
- Integration with other connections: You can configure WireGuard tunnels as gateways for other connections like SSH. XPipe will then automatically enable the required tunnel when connecting to that remote system.
- Better elevation handling on Windows: The official WireGuard application has to be launched as Administrator, while XPipe can elevate dynamically only when needed.
- More flexible config file management: You can store your config files wherever you like and also sync them via the git vault.
- Improved display: XPipe shows all resolved peer entries of a tunnel in a condensed list.
You can still keep using the official WireGuard application alongside XPipe. Changes made to tunnels outside of XPipe will show up after a restart.

Adding tunnels
If the WireGuard command-line tools are installed, searching for available connections on the local system will add a WireGuard entry. You can then add your tunnel config files to it:

You can also edit the config file of an existing tunnel from its entry.
Using tunnels
You can manually toggle individual tunnels from the connection hub. To have a tunnel enabled automatically whenever a connection requires it, set the tunnel entry as the gateway for that connection:

For more information, see the SSH gateways section.
On Windows, XPipe manages the tunnels as WireGuard tunnel services and elevates automatically when needed. On Linux and macOS, tunnels are managed via wg-quick, so you will be prompted for sudo access when starting or stopping a tunnel.
If you want a tunnel to be started whenever XPipe launches, you can enable automatic startup for it from the entry's menu.
Synchronization
If you want to sync your WireGuard tunnels across multiple devices or share them with other team members, you can add the config file to your vault by pressing the sync button:
