System tray icon for WireGuard VPN
Simple utility for control WireGuard VPN (check/enable/disable) by system tray icon. Tested on Ubuntu 21.04 only.
- Since You don't want to run it as root, You could delegate some work to Network Manager (It supports WireGuard since 1.26.2).
So, You can create and configure a WireGuard network connection by
nm-connection-editor(see details here) - Download last release archive and unpack it
- Check config file
wgs.yaml. It contains bash-script commands to control VPN. Adjust it, if needed: provide actual Network Manager connection id (by default,wg0) forwgUpCommand,wgDownCommandand WireGuard interface name (usually,wg0) forwgStateCommand,rxCommandandtxCommand. Or, You can write own completely different commands, if You use different Linux distributive - Run it.
sudo apt-get install gcc libgtk-3-dev libayatana-appindicator3-dev
go build