Set up WireGuard Command Line Interface (CLI) on Raspberry Pi (Debian) using this guide. Configure secure VPN connections through the command line interface for enhanced privacy and security on your 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 bash
- 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