kzntxw
Last Updated: March 08, 2016
·
2.807K
· bt3gl
1396323302436

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'
Say Thanks
Respond

1 Response
Add your response

18437
None

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 ·
Awesome Job

E20ce6a2 ca1f 11e7 82be 7f617c8310c9
SENIOR DEVELOPER (m/w)
·
Berlin, Köln, Hamburg, München
·
Full Time