Installing OpenVPN + PIA on Debian Jessie

So I started using the vpn service Private Internet Access, and I am very pleased with them, but their downloadable software is mainly for Ubuntu, and often does not work well with other distros. So I found instructions on PIA’s website about how to make it work for virtually any Linux. I love Debian, so here we go!

first you will need to install openvpn, either from source, or by package manager, on Debian systems the command to do this is:

sudo apt-get install openvpn

Once that installs, you will need to download a package from the PIA website that contains openvpn config files for various network routes.

cd /etc/openvpn

Then download the file with the command:

sudo wget https://www.privateinternetaccess.com/openvpn/openvpn.zip

Extract those files with:

sudo unzip openvpn.zip

view the files, and decide which one is best for you to use, based on where you are with the command:

ls -l

Then use some variant of the command sudo openvpn ‘config-filename-goes-here.ovpn’
where config-filename is the ovpn config file you chose based on location, I used US WEST.ovpn, so my command was:

sudo openvpn 'US West.ovpn'

please note the single quotes, you will need them in order to avoid using escape characters for the space between US and West.

Please note, that it is best to issue this command from inside the /etc/openvpn directory in order to make it easier for openvpn to easily access other needed files.

begin

Then, it will ask you for your PIA assigned username, and your self assigned password from when you signed up for an account at PIA.

username-password

Hit Enter…

complete

If it does not crash or give an error message about process terminated, you will have the above screen, with the Initialization Sequence Completed, then you are logged onto the vpn network and are protected.

Personally I like to leave the process open and floating in the terminal window, and do other command work in another terminal window. I like this mainly because if I ever need a rapid disconnect, I can just go into the terminal in question, and hit CTRL+C.

If you wish to verify if you are protected you can do so at the PIA website, you should see something like this when you load up that page…

protected

and you are running vpn on Debian Jessie through PIA.

Advertisements

About woh3

I now live in Hayward, CA. I am a Laboratory Manager in San Francisco, In my spare time I enjoy Chess, Birdwatching, walking and biking, I am working on my undergrad degree in Applied Math-Operations Research
This entry was posted in Debian, Linux, Security, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s