How to set up a free VPN client on a Raspberry Pi

Update your repository

cd ~
sudo apt-get update

Install openVPN

sudo apt-get install openvpn

Move to the openVPN directory

cd /etc/openvpn/

For this demonstration the free openVPN certificates from vpnbook.com have been used. Visit the site and view the current user name and password which changes regularly

Download the free openVPN certificate bundle from vpnbook.com

sudo wget https://www.vpnbook.com/free-openvpn-account/VPNBook.com-OpenVPN-Euro1.zip

Unzip the certificates

sudo unzip VPNBook.com-OpenVPN-Euro1.zip

Create a password file

sudo nano password.txt

Add both the username and password from the vpnbook.com web site

vpnbook
he2qv5h

Save changes and exit the file

press control x
press y
press return

Edit an openVPN certificate

sudo nano vpnbook-euro1-udp53.ovpn

Update the auth-user-pass field with the path to your password file

auth-user-pass /etc/openvpn/password.txt

Save changes and exit the file

press control x
press y
press return

Repeat the edit for each of the certificates you wish to use

Run openVPN

sudo openvpn vpnbook-euro1-udp53.ovpn

Once you see ‘initialization Sequence Completed’ then your connection will be encrypted

Terminate the connection

press control c

vpnGUI – an OpenVPN client for a Raspberry Pi