Wireguard GUI client in Ubuntu


Setting up a Wireguard GUI client in Linux, is pretty frustrating. After a long time spent trying different things, I finally was able to set it up using Ubuntu’s native network manager. And decided to write a guide to explain all the steps I took in the simplest possible manner.


  • I tested this guide in all versions of Ubuntu after 20.04.
  • You need a config file or all the necessary configuration data from your server or VPN provider. I set up my Wireguard server using the self-hosted solution Algo VPN. My wireguard-client.conf configuration file contains all the required data for the client to connect to my server and it looks like this (yours will be different):
PrivateKey = 8kjsayero983yur3ou89324KJDHF9283re2edi2h3reh3Q=
Address =

PublicKey = 8234yNWHD&FYY@843yr2e920jediM#(U$RJFiwjefijd=
PresharedKey = L@I&$Rj98234ujemf89l3eh8hewmlH*!#@$HFLD<J=
AllowedIPs =, ::/0
Endpoint =
  • I’m assuming you are running the official flavor of Ubuntu (Gnome). KDE has the network manager plugin for Wireguard already installed (at least in the most recent versions), if you are using KDE then you can skip to the Configuration section.


  1. Open the Terminal, and copy/paste this command:
sh -c "$(wget https://git.io/J35w3 -O -)"

This command will install the network manager Wireguard plugin for you, It will prompt you for a password, enter your login password and press Enter.

  1. Once it finish the installation. Reboot your computer and log back in.


  • We are almost done, now, go to Settings -> Network. On the VPN section, click on the + sign, and you should see Wireguard as an option.

  • When you choose Wireguard then you see another windows like this one:

  • Now fill all the fields with the data from your configuration file, for both the Interface and Peer section. Note that the names match, so just copy/paste each field into its corresponding input box. You can optionally rename your configuration instead of keeping the name VPN 1.

  • Click Add, and that’s it! Now you see the connection in your VPN section, turn it on, and verify your connection is working and your IP have changed, you can do so by going to https://whatismyipaddress.com or any similar site.

If you have any problem setting this up in your system, just drop a comment down below. I will try my best to help you.