Set Up VPN on Raspberry Pi
Raspberry Pi with VPN on it can provide you with a stable and fast private network connection with the high level of mobility. How does it all work?
VPN (or Virtual Private Network) helps you encrypt your connection and browse the Internet anonymously with a hidden IP to protect your privacy. And you would probably want to set up VPN on your Raspberry Pi to protect your privacy while surfing the Internet.
There are companies offering ready-to-use VPN services. They provide you with anonymous IP and encrypt your connection by routing your traffic through their servers. Unfortunately, many of VPN services aren’t available for Raspberry Pi. But ExaGear Desktop can help you with that.
Today we’ll tell you about Private Internet Access VPN Service. Although PIA doesn’t have an installer for Raspberry Pi you can use PIA and set up VPN on your RPi with the help of ExaGear Desktop. Below is a simple instruction on how to do that.
P.S.: you might also want to know how to run Google Chrome on Raspberry Pi
VPN setup instruction
Install ExaGear Desktop
1. Put ExaGear Desktop archive with installation packages and ExaGear Desktop license key in the same folder. Open Terminal (command line), move to this folder and unpack the archive by entering the following command:
$ tar -xvzpf exagear-desktop-rpi3.tar.gz
2. Install and activate ExaGear by running install-exagear.sh script:
$ sudo ./install-exagear.sh
Launch guest x86 system
3. Enter the guest x86 system by typing the following command:
Starting the shell in the guest image /opt/exagear/images/debian-8
You’re in x86 environment that can be checked by running the ‘arch’ command:
4. It is recommended to update apt-get repositories on the first launch of the guest system:
$ sudo apt-get update
Install Private Internet Access
5. Download Private Internet Access installer for Linux from the official site https://www.privateinternetaccess.com/installer/download_installer_linux using browser.
6. Unpack the downloaded archive in Terminal inside the guest system:
$ tar -xzvf Downloads/pia-*-installer-linux.tar.gz
7. Run Private Internet Access installer:
8. Install libraries required for PIA:
$ sudo apt-get install libnss3 libgconf-2-4 libasound2 libxtst6
Set up VPN
9. Run PIA by clicking on launcher in Menu -> Other -> Private Internet Access and set up VPN.
This way you can set up VPN not only on Raspberry Pi 2 or Raspberry Pi 3 but also on another ARM-based device such as Odroid, Banana Pi, Beagleboard, Cubox, Jetson, Cubieboard etc. ExaGear Desktop supports almost all ARM devices and you can run PIA VPN service on any of them.
It is worth noting that with ExaGear Desktop you can run practically any x86 app on Raspberry Pi and other ARM-based devices.
If you would like to learn more about ExaGear, mentioned in this article, please, visit the official website.
The original article is Setup VPN on Raspberry Pi