How to Setup Your Raspberry PI VPN Connection

Hide IP Solutions, VPN Services

Raspberry PI is a wonderful device: so simple, yet so powerful and useful. As a regular VPN user you will probably want to setup a VPN connection on your Rasp as well. The process is not trivial, but it can be done without much hassle. Learn how to setup a Raspberry PI VPN.Raspberry PI VPN

What is Raspberry PI?

As you probably know, the Raspberry Pi is a tiny computer that was built to promote the teaching of basic computer science in schools and in developing countries. Since its launch in 2015, it become very popular (more than 12M units sold so far) due to its cost (between $5 and $35), its simplicity and versatility. Raspberry Pi is now the preferred tool for hobbyists, students and even hackers.

What can you do with a Raspberry Pi?

Well, you may use it in any project that involves a small computational unit. You may even use it as a desktop PC.

Are you new to Raspberry PI? Here are 2 articles that may give you an idea what to do next: MakeUseOf – Raspberry Pi Projects for Beginners and LifeHacker – Top 10 Raspberry PI Projects for Beginners.

What is Raspberry PI VPN and why would you need one?

If you are using your Raspberry PI as a desktop computer then you may need a VPN to: secure your Internet connection, protect yourself from hackers or unblock restricted websites.

As expected, due to hardware and software restrictions, you may NOT use Raspberry PI VPN in the same way you use VPN on a regular desktop or laptop.

How to configure Raspberry PI VPN?

This article covers the way you setup a VPN connection on a Raspberry PI, not the way you install a VPN server on your Raspberry PI device. If you are interested in using your device as a VPN server here are some useful article:

Configure OpenVPN

This tutorial will show you how you can setup a VPN connection from your Raspberry PI using OpenVPN, assuming that you run Raspbian O/S on it. Before you begin, you need to get a OpenVPN config file from your VPN provider (if you don’t have a subscription yet, take a look to the bottom of the article).

STEP 1. Get your current package list updated:

sudo apt-get update

STEP 2. Install the OpenVPN package:

sudo apt-get install openvpn

STEP 3. Download the OpenVPN config files and then copy them to the pi (via scp or FTP), then unzip them into /etc/openvpn

sudo mv ####_linux.tar.gz /etc/openvpn

sudo tar -xf ####_linux.tar.gz

cd /etc/openvpn

STEP 4. Make the script executable

sudo chmod +x /etc/openvpn/update-resolv-conf

STEP 5. Use the following command to get connected (replace config file with the one of the VPN server you want to connect to). Depending on the config files, you may be asked for the credentials (username/password).

sudo openvpn –daemon –cd /etc/openvpn –config openvpn_config_file.ovpn

STEP 6. To disconnect run:

killall -9 openvpn

Raspberry PI VPN providers

In order to setup a Raspberry PI VPN connection you need an active subscription to a VPN service (if you don’t have a VPN server of your own). Most of the top VPN providers offer access to OpenVPN configs that you may use with the above set of instructions. Some of them also expose batch files that can be easily executed. Take a look below to the recommended VPN services to be used on your Raspberry PI and their Raspberry PI VPN tutorials.

VPN Provider Raspberry PI Tutorial Price
HideMyAss Linux CLI OpenVPN Client from $11.52/month
ibVPN OpenVPN configuration for Raspberry PIConfigure the VPN for OpenELEC running on Raspberry Pi from $4.95/month
NordVPN OpenVPN on Raspberry PI from $10.95/month
IPVanish Set up IPVanish on Raspberry PI 3 from $10/month
PureVPN Setup PureVPN on Raspberry Pi (PPTP) from $9.95/month
ExpressVPN

ExpressVPN app for Raspberry Pi

from $12.95/month

Conclusion

To sum up, you may setup a VPN connection on your Raspberry PI without much hassle. You may go either with OpenVPN step-by-step setup or use the follow the tutorials of the above listed VPN providers. Enjoy!

Did you set up your Rasberry PI VPN? What do you use it for? Let us know your thoughts in the comments below.

Related Posts

0 comments… add one

Leave a Comment

shares