Saturday, February 18, 2017

Linux Mint 18.1 + PIA + OpenVPN + Network Manager Gnome [works]

I finally got Linux Mint 18.1 to correctly use OpenVPN with Private Internet Access (PIA).

Here's what didn't work:
  • The PIA supplied binary.  It installed fine, but would simply time out on any connection
  • Using command-line openvpn... even the /etc/openvpn solutions wouldn't work.
My biggest problem was this: OpenVPN would connect (sometimes), but there wouldn't be any internet connection.  I saw solutions that played with firewalls and iptables, but my Android worked just fine, and I felt like I shouldn't have to mess with iptables, NAT, etc.

Here's what did work:
  • Use "Preferences --> Network" and NOT "Preferences --> Network Connections" or Network Manager that's accessed via the tray
  • Download the default ovpn files and unzip:  https://www.privateinternetaccess.com/openvpn/openvpn.zip
  • Goto "Preferences --> Network"
  • Click "+"  --> "VPN"  --> "Import from file" --> select your ovpn file (i.e., "US East.ovpn")
  • Under "Gateway" delete the " :1198" (or whatever port is listed)
  • Enter your PIA username  ("Type" should already be "Password")
  • Click "Advanced"
  • Enable "Custom Gateway Port" and enter the port# you deleted from the Gateway name (i.e. 1198)
  • Click "Security" tab
  • Select "AES-128-CBC" (even if it's already listed)
  • Select "SHA-1" (even if it's already listed)
  • Click "OK" to close Advanced screen
  • Click "Save"
  • Now in the "Network" screen (NOT from the tray), select your VPN and turn it on.  It'll probably ask you for your password, and a popup will say you connected successfully.
  • Test your VPN by visiting here: https://www.privateinternetaccess.com/pages/whats-my-ip/
Auto-connect to VPN

I haven't tried this yet, but in the "Preferences --> Network Connections" dialog (i.e., the other one not used above), you select your wifi connection --> "Edit" --> "General" tab.  There's an option there to automatically connect to a specific VPN when you connect to your wifi.


Hope this helps!

No comments:

Post a Comment