How to set up OpenVPN for Raspberry Pi Desktop (Debian)

Looking to set up OpenVPN on Raspberry Pi? Here is the easy-to-follow guide for you.

Written By Fahad Ahmed

Updated at August 24th, 2023

The following is required for setting an OpenVPN connection on Raspberry Pi desktop.

How to Download OpenVPN files.

  • First, open the web browser (Firefox) and download the PureVPN OpenVPN configuration files by clicking šŸ‘‰Ā here and extracting them.

  • Now rename the extracted folder toĀ OVPNfiles.

  • Now go to theĀ MenuĀ bar and select/ open theĀ TerminalĀ from there.

  • Now you will need to install OpenVPN packages. Type the following to install it:

  • sudo bash
  • sudo apt-get install openvpn
  • Now access the directory/ folder where you have downloaded the OpenVPN files (i.e. the Downloads folder) then copy and replace OVPNfiles to /etc/openvpn:

  • cd Downloads/
  • sudo cp OVPNfiles/* /etc/openvpn
Delete

How to set up OpenVPN on Raspberry Pi.

  • Now move to the directory where we have copied the OVPNfiles folder i.e. /etc/openvpn:

  • cd /etc/openvpn/
  • In order to connect to the VPN, run the command:
  • sudo openvpn de2-ovpn-tcp.pointtoserver.com

(In this case the Germany TCP server is used to connect to the VPN as an example. You are free to choose any server that best fits your requirements from the list above)

  • You will be immediately prompted to enter the Auth Username and Auth Password, Enter your PureVPN credentials. Click šŸ‘‰here to know how to find your VPN credentials.Ā 

  • You are now connected to PureVPN, the second last line will indicate your current VPN IP address which in this case is 172.94.11.149

Moreover, You can also verify your VPN IP and location from this šŸ‘‰Ā link

Delete