This tutorial shows how to configure a Private Internet Access VPN in Fedora.
First, make sure you have openvpn in your system. If not:
$ sudo yum install openvpn
PIA has 2 types of credentials: a common SSL certificate, a credential that provides their authentication, and your username and password, for yours.
Copy your ca.crt into /etc/openvpn.
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
$ sudo openvpn --config '/etc/openvpn/server.conf'