Wireguard VPN client setup
Overview
This guide will walk you through setting up Wireguard client on Ubuntu along with adding a toggle to your gnome interface. I will assume you already have a wireguard VPN server running elsewhere along with your wireguard client conf file.
Installing and running Wireguard
- Install wireguard.
1
sudo apt install wireguard
- Create a
wg0.conf
file in/etc/wireguard
and paste your wireguard client conf in this file. CTRL + X to save.1
sudo nano /etc/wireguard/wg0.conf
At this point wireguard is now installed and configured you can start and stop wireguard with either of the below commands.
1
2
3
4
5
6
7
8
9
#start via service
sudo systemctl start wg-quick@wg0.service
#start via wg tool
sudo wg-quick up wg0
#stop via service
sudo systemctl stop wg-quick@wg0.service
#stop via wg tool
sudo wg-quick down wg0
Enable and disable Wireguard via gnome shell extension
Enable wireguard-indicator extension. LINK
Go to the wireguard-indicator settings and modify the name of the first service. Make sure the service is set to
wg-quick@wg0.service
and click Ok.Delete the second service
This post is licensed under CC BY 4.0 by the author.