PDA

View Full Version : How to privateinternetaccess VPN with networkmanager Fedora mate-desktop



jonathonp
8th June 2015, 02:06 PM
I wrote this short guide for myself so i would remember how to to setup a vpn with privateinternetaccess. I am using Fedora 22 with mate desktop.

1. I installed NetworkManager-openvpn-gnome in case it was needed.

su
dnf -y install NetworkManager-openvpn NetworkManager-openvpn-gnome

2. Go to https://www.privateinternetaccess.com/openvpn/openvpn.zip and download openvpn.zip (see update at bottom of this post)

Open a terminal type:



unzip ~/Downloads/openvpn.zip -d ~/Downloads/openvpn

Copy the ca.crt from openvpn.zip to /etc/openvpn

su
cp /home/myusername/Downloads/openvpn/ca.crt /etc/openvpn


3. Left Click Network Manger Applet > VPN Configurations > Configure VPN > Left Click the button titled ' + Add' and Choose 'OpenVPN', then click 'Create'

4. Add your 'Connection name:' eg PIA

5. Add the gateway address from https://www.privateinternetaccess.com/pages/network/
eg:

aus-melbourne.privateinternetaccess.com

6. For Authentication Type choose 'Password'
7. Enter your 'Username'
8. Enter your 'Password'
9. For the 'CA Certificate' navigate to your ca.crt (which in this case is /etc/openvpn/ca.crt) by choosing 'Enter Location' and enter the path:


/etc/openvpn


and then click 'open ca.crt'

10. Click the 'Advanced' tab and tick the box titled 'Use LZO data compression'
11. Click 'OK' then 'Save' to exit
12. Left click on the Network Manager applet and choose 'VPN Connections' and choose PIA.

Easy

Update.
Thanks Madtiger http://forums.fedoraforum.org/showpost.php?p=1767490&postcount=4 for letting me know that the current .crt is not working. I gave it try and it does not work for me either.

/home/jonathon/Downloads/openvpn-update/openvpn/ca.rsa.2048.crt

I have attached the older version from PIA that works.

MaJie
8th July 2015, 06:15 AM
Thanks very much!!

hudsonc
27th July 2016, 05:09 AM
awesome post and very helpful!!! Now that its been a year and both Fedora and PIA (private internet access) have made changes, I thought I'd add in my recent experience.

I'm running Fed 24.

I did not have to download the openvpn packages as they were installed with the default install. yay! :)

I did however find that PIA has the configuration files already set up here - https://www.privateinternetaccess.com/openvpn/openvpn.zip

From here you can download and extract and you get all the locations preconfig files as well as the CA.crt.

Follow the same steps as the OP except instead of selecting Openvpn, select "import from file" and select any of the config files you downloaded.

Here's a catch I ran in to - under advanced, I had to go to security and instead of "default" I had to select "AES-128-CBC". I selected this cipher as in the config files, that is the Cipher that is specified.

That's it and I hope this helps everyone. Biggest thanks goes to the OP for the top notch initial documentation.

Madtiger
27th July 2016, 06:55 AM
The new zip file does not contain the old ca.crt file. It has a ca.rsa.2048.crt file which does not work for me. I had to find my copy of the old files and replace the new one with the old ca.crt just to get a network connection. Just though I would mention that I am on KDE Plasma and have been using PIA for a year now and when they came out with their new zip I tried it and followed their instructions and it was a no-go for me. So I reverted back to the old .crt and everything works fine.

jonathonp
30th July 2016, 06:59 AM
Hi maditiger. I updated the guide. thanks jonathon

Madtiger
30th July 2016, 06:37 PM
And thank you for updating the thread. I appreciate that.

picasso_1.2.13
17th September 2016, 11:04 PM
LOL... i didn't see this, but I just posted a similar thread, albeit a bit more elaborate. http://forums.fedoraforum.org/showthread.php?t=311500

Also, I included a script that basically sets up all the PIA VPN gateways for you, both as server setup, or in NetworkManager.

Nice post OP! you beat me to it...