VPN services

VPN services are offered by several companies. They allow users to protect their privacy and security while using the Internet. Guides to using various service providers on Gentoo are below.

Private Internet Access
https://www.privateinternetaccess.com/

The following will auto-start openvpn upon boot.


 * 1) Buy a subscription and log in
 * 2) # echo "net-misc/openvpn passwordsave examples" >> /etc/portage/package.use # optional
 * 3) # emerge -av openvpn
 * 4) Go to https://www.privateinternetaccess.com/pages/client-control-panel and locate the "PPTP/L2TP/SOCKS Username and Password"
 * 5) Generate Username/Password if they are not there
 * 6) In the next two steps, replace USERNAME and PASSWORD with the located or generated ones.
 * 7) # cd /etc/openvpn
 * 8) # echo "USERNAME" >> login.conf
 * 9) # echo "PASSWORD" >> login.conf
 * 10) # mkdir pia
 * 11) # cd pia
 * 12) # wget https://www.privateinternetaccess.com/openvpn/openvpn.zip
 * 13) # unzip openvpn.zip
 * 14) # cp US\ East.ovpn ../openvpn.conf # replace with your desired region
 * 15) # cd ..
 * 16) # ln -s pia/ca.crt
 * 17) # ln -s pia/crl.pem
 * 18) # echo "auth-nocache" >> openvpn.conf
 * 19) # echo "auth-user-pass login.conf" >> openvpn.conf
 * 20) # chmod 600 openvpn.conf login.conf pia/*
 * 21) # chmod 700 pia
 * 22) # /etc/init.d/openvpn start
 * 23) # rc-update add openvpn # don't use this line if you don't want openvpn upon boot


 * 1) If Openvpn doesn't connect you would want to add www.privateinternetaccess.com's DNS servers to your /etc/resolv.conf.head file:
 * 2) # Create '/etc/resolv.conf.head' file if it doesn't already exist.
 * 3) # Edit the file by adding the two DNS servers:
 * 4) # # nameserver 209.222.18.222
 * 5) # # nameserver 209.222.18.218
 * 6) # Go to www.privateinternetaccess.com's to make sure you entered the correct DNS servers:
 * 7) # # Click on 'Client Support Tab' and scroll down to 'DNS leak protection' section
 * 8) # Save and Reboot