


Now that we have the zipped file with all the configurations we need to unzip it by using the following command: unzip openvpn.zip -d "$(date +"%d-%m-%Y")"-PIA-openvpn
#PRIVATE INTERNET ACCESS WITH OPENVPN DOWNLOAD#
Once in /etc/openvpn/client/vpn-bundles we can proceed to download the configuration bundle with wget by issuing the following: wget Switch to the directory we created to store the configuration bundle by issuing the following command: cd /etc/openvpn/client/vpn-bundles We are going to download those configurations, alter them a bit and use them to connect to the PIA VPN server as soon as our system finishes booting up. Private Internet Access (as well as other VPN providers) provide configuration bundles for the OpenVPN default client. Mkdir vpn-bundles Setting up all the configurations Once there we create several directories by issuing the following commands: mkdir certs-available First we need to switch to “/etc/openvpn/client directory”. This will help if we ever need to alter the configuration by only requiring the change of a couple of linked files. Just to keep things organized we will create a set of directories.
#PRIVATE INTERNET ACCESS WITH OPENVPN INSTALL#
We can do this by using the following command:Īpt -y install openvpn unzip wget curl openresolv Setting up the directory structure To accomplish this task we are going to need to install openvpn, unzip, wget, curl and openresolv. I’m sure other VPN service providers would work the same way.Īlthough I initially tested this on Raspbian Stretch on a Raspberry Pi, I have since used the same steps on Debian Stretch and achieved the same results. I’ve chosen to use Private Internet Access only because I already have an account with them and they support the OpenVPN client to connect to their VPN servers. In this howto, we will configure the OpenVPN client to connect to the VPN servers hosted by Private Internet Access. It allows you to connect to an untrusted network and tunnel all your network traffic so that it emerges from the VPN server to its destination. A Virtual Private Network establishes a secure encrypted connection between your system and a server.
