In this tutorial, I will be going through all the steps to setting up Raspberry Pi VyprVPN. This tutorial is handy if you’re looking to connect your Pi to the VyprVPN service.
There are many reasons why you may want to set up a VPN on the Raspberry Pi. The most common is that you want an extra layer of security and anonymity to your network activities. These benefits are handy for a range of different Raspberry Pi projects.
Most of our projects have been tested for the latest version of Raspbian. I recommend upgrading to the most recent for the best experience when following this tutorial.
If VyprVPN doesn’t take your fancy, then we do have other tutorials that cover services such as ExpressVPN or NordVPN.
You can find the tutorial right below if you have any issues then be sure to let us know over at our forum.
All the equipment that you need to set up this Raspberry Pi VyprVPN tutorial is listed right below.
Installing VyprVPN to the Raspberry Pi
VyprVPN isn’t much different to installing most VPN services on the Raspberry Pi as most make use of the OpenVPN software.
1. If you haven’t already, then you will need to sign up to VyprVPN.
2. Load the terminal on the Raspberry Pi or make use of SSH to remotely it access.
3. Update the Raspbian to the latest packages.
sudo apt-get update sudo apt-get upgrade
4. Now, let’s install the OpenVPN package, you can do this by entering the following command.
sudo apt-get install openvpn
5. Change directory to the OpenVPN directory by entering the following.
6. We will now need to download the VyprVPN ovpn files.
sudo wget -O vyprvpn.zip \ https://support.goldenfrog.com/hc/article_attachments/360008728172/GF_OpenVPN_10142016.zip
7. Next, we will now need to extract the files that we need.
sudo unzip vyprvpn.zip
8. Now let’s move all the files to the base directory and delete VyprVPN directory.
sudo mv /etc/openvpn/OpenVPN256/* /etc/openvpn/ sudo rm -r /etc/openvpn/OpenVPN256
9. To connect to VyprVPN simply use the following command.
sudo openvpn file_name
Replace file_name with the location of where you wish to connect. For example, If I wanted Canada for example, then I will use Canada.ovpn. You can view all the locations by using the following command.
ls -l /etc/openvpn
Below is an example of connecting to Canada.
sudo openvpn /etc/openvpn/Canada.ovpn
10. It will now ask for your credentials, and you will need to enter them to be able to connect to VyprVPN. Test your connection by going ipleak.net. You should have a different IP to your usual one.
11. If you need to disconnect, then you can easily use either ctrl+c or the following command.
sudo killall openvpn
Auto Start VyprVPN
Most of us love to reduce the amount of manual input required for when it comes to technology. The following steps will show you how to set up VyprVPN to connect automatically on bootup.
1. Firstly, we will need to save both our username and password in a file.
sudo nano /etc/openvpn/auth.txt
2. In this file, add your chosen username and password for the service. Make sure the username and password are both on separate lines.
3. Save and exit by pressing ctrl+x, then y and lastly enter.
4. Now we will need to copy the ovpn file, simplify its name at the same time.
sudo cp "/etc/openvpn/Australia - Sydney.ovpn" /etc/openvpn/aussyd.conf
5. Now let’s edit this new file.
sudo nano /etc/openvpn/aussyd.conf
6. We will only need to do a straightforward edit in this file.
7. Finally, we need to setup OpenVPN to auto start using our ovpn file.
sudo nano /etc/default/openvpn
Replace aussyd with the filename you set.
8. Save and exit.
9. Reboot the Raspberry Pi to test out our new configuration.
10. Now test the VPN by going to ipleak.net or a similar website. The IP should be VyprVPNs and not your own. Doing this step will confirm that we have successfully set up VyprVPN on the Raspberry Pi.
Preventing DNS Leaks
To ensure that your DNS isn’t leaking your location you will need to do a tweak on your Pi. To fix this, we will simply force our DNS to run through Cloudflare’s public DNS rather than our internet service providers (ISP) DNS. This process is pretty easy and won’t take long to do.
1. Firstly, load into the dhcpcd configuration file and update the following line.
sudo nano /etc/dhcpcd.conf
2. Save & exit the file.
3. Now reboot your Pi by entering the following command.
If you run into trouble while setting up Raspberry Pi VyprVPN then the troubleshooting tips might help you out.
- You’re able to start and stop your VPN by using the following command. Replacing stop with start will start the VPN backup. This command will only work if you have it set up for autostart.
sudo systemctl stop openvpn
- It’s important to be aware that we are storing credentials in plain text. This lack of security makes it essential that you keep your Pi secure against unauthorized access. Just changing the default password will heavily improve your security.
As I mentioned above, there is plenty of other projects that work great with a VPN. Something as simple as a Torrentbox will benefit. Just make sure your VPN provider allows torrenting as some will ban you for using up too much bandwidth.
Hopefully, by the end of this Raspberry Pi VyprVPN tutorial, you have everything set up and working as it should be. If you require further help, then I highly recommend that you head over to our forum.
Affiliate link disclaimer: All the products I mention on this website I have personally purchased and used at least once. Some of the links on this website are affiliate links that earn me a small commission whenever a sale is made.