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) Go to https://www.privateinternetaccess.com/pages/client-control-panel and locate the "PPTP/L2TP/SOCKS Username and Password"
 * 3) Generate Username/Password if they are not there
 * 4) In the next step, replace USERNAME and PASSWORD with the located or generated ones.
 * 5) Download the privateinternetaccess configurations and certificates.
 * 6) Modify the configuration file and permissions.
 * 7) Start the service and add to default runlevel.
 * 1) Modify the configuration file and permissions.
 * 2) Start the service and add to default runlevel.

If Openvpn doesn't connect you would want to add www.privateinternetaccess.com's DNS servers to your file. Create '/etc/resolv.conf.head' file if it doesn't already exist, edit the file by adding the two DNS servers:

Go to www.privateinternetaccess.com's to make sure you entered the correct DNS servers: Save and Reboot.
 * Click on 'Client Support Tab' and scroll down to 'DNS leak protection' section

Troubleshooting
The above setup requires that root has write permission on /etc/resolv.conf. To make sure this is the case run

If the output looks like this

than, since "i" means that the file has the immutable bit, not even the root can write on it. To change that just run

and reboot.