Overview
Wireguard is okay on linux, but it does cause some issues with DNS that I don’t like. Basically, if you specify a DNS server, then all traffic uses that server. I have not figured out a way to perform split DNS. So for now, I simply use network manager to that I can toggle the VPN on and off.
Create keypairs
First, you need keys. To generate this, make sure you have wireguard-tools
installed on whatever distro you are using. Then, use the following commands:
Create network manager module
First, you have to create a wg-quick
config. Name it something like wg0.conf
. It should look something like this:
Once this is created, run the following command to add it to network manager:
And boom! Wireguard at a click of a button.