Simple wrapper that makes WireGuard easier to use with VPN providers.
VPN providers who are offering WireGuard support. NOTE that as of right now, these providers must offer a configuration script following the original template written by Jason A. Donenfeld. To my knowledge the current VPN providers doing this are:
sudo add-apt-repository ppa:wireguard/wireguard && sudo apt-get update;
sudo apt-get install curl jq openresolv linux-headers-$(uname -r) wireguard-dkms wireguard-tools
Simply run the following commands in your terminal and follow the instructions
cd ./WireGuard-Wrapper/;
sudo ./setup.sh install
wvpn connect <server>
It is also possible to leave out server specification and connect to the default server that was set during the installation:
wvpn connect
wvpn disconnect
wvpn kill-switch <on|off> <server>
It is also possible to pass multiple servers as arguments, or even all of them. To enable a kill-switch for all servers run:
wvpn kill-switch <on|off> all
When updating the server list you will be shown the current available servers. To access the list again run:
wvpn list
To get more detailed information about your connection, run
wvpn status
It is possible to choose a server that will auto connect on boot.
wvpn start-up <on|off> <server>
sudo wvpn update servers
wvpn update default <server>
This command will let you change the default server set during the installation. Use the list
command to view the current default.
Verification of a connection will be done every time a connection tries to be established, To manually check the verification run:
wvpn verify
wvpn help
This is likely due to the network manager not using openresolv. See here for a possible solution.
Enabling the kill switch blocks all local traffic. Either add iptable rules to circumvent this or disable the kill switch.
Yes. However, I chose to implement a more general solution.
- Running WireGuard with Mullvad on Linux - Mullvad's official guide.
- Running WireGuard with AzireVPN on Linux - AzireVPN's official guide.
- WireGuard - Official WireGuard website.
Adi Hrustic
This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details.