Last Updated: March 08, 2016
·
3.615K
· bt3gl

Setting Up a PIA VPN in Fedora 20

This tutorial shows how to configure a Private Internet Access VPN in Fedora.

OpenVPN

First, make sure you have openvpn in your system. If not:

$ sudo yum install openvpn

Credentials

PIA has 2 types of credentials: a common SSL certificate, a credential that provides their authentication, and your username and password, for yours.

  1. Copy your ca.crt into /etc/openvpn.

  2. Copy your credentials to a file:

$ echo “YOUR PIA USERNAME” > ~/.pia
$ echo “YOUR PIA PASSWORD” >> ~/.pia
$ sudo chown root:root ~/.pia 
$ sudo chmod 400 ~/.pia
$ sudo mv ~/.pia /root/

Server Config File

Now configure your server.conf file at $subl /etc/openvpn/server.conf with some of their servers' configuration. For example:

client
dev tun
proto udp
remote swiss.privateinternetaccess.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/ca.crt
tls-client
remote-cert-tls server
auth-user-pass /root/.pia
comp-lzo
verb 1
reneg-sec 0
auth-nocache

Connecting:

$ sudo openvpn --config '/etc/openvpn/server.conf'

1 Response
Add your response

I cannot connect to it.

This is my result:

Sun Feb 22 22:38:38 2015 OpenVPN 2.3.6 x8664-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Dec 2 2014
Sun Feb 22 22:38:38 2015 library versions: OpenSSL 1.0.1e-fips 11 Feb 2013, LZO 2.06
Sun Feb 22 22:38:40 2015 UDPv4 link local: [undef]
Sun Feb 22 22:38:40 2015 UDPv4 link remote: [AF
INET]50.97.94.12:1194
Sun Feb 22 22:38:54 2015 [Private Internet Access] Peer Connection Initiated with [AFINET]50.97.94.12:1194
Sun Feb 22 22:38:59 2015 AUTH: Received control message: AUTH
FAILED
Sun Feb 22 22:38:59 2015 SIGTERM[soft,auth-failure] received, process exiting

Do you have any ide why?

over 1 year ago ·