The following is required for setting a Wireguard connection on Raspberry Pi.
A working installation of Debian 11 (Debian Bullseye)
A PureVPN premium account (Don’t have one? Sign up now!)
Firstly, you will need to install Wireguard packages and files. Type the following to install them:
sudo apt-get update && sudo apt-get upgrade -y
sudo apt-get install wireguard
Now go to your Member’s Area and download the desired PureVPN Wireguard file. (WireGuard Configuration File will expire in 5 minutes after generation if not connected, after that you need to regenerate a new configuration.)
Now create a Wireguard profile and copy/paste the content of the downloaded config. file there.
sudo nano /etc/wireguard/wg0.conf
Press the Ctrl+O keys to save the contents of the file and then Ctrl+X to exit the file.
Now run the following command to initiate the Wireguard connection.
wg-quick up wg0
PureVPN Wireguard connection is activated now. Execute the following command to deactivate the connection.
wg-quick down wg0
Was this article helpful? Rate and share your comments below. Your input matters to us and everyone else in the Cyber Security Community.