Ubuntu OpenVPN Setup


Disclaimer: Installation and use of any software made by third party developers is at your own discretion and liability. We share our best practices with third party software but do not provide customer support for them.

  1. Click the Unity menu icon
    ubuntu1
  2. Search for "terminal"
    ubuntu2
  3. Launch the Terminal application
    ubuntu3
  4. On some distributions, you may need to run the following command before running the install script:
    sudo apt-get install curl network-manager-openvpn-gnome
  5. Enter the following command in the terminal window:
    wget https://www.privateinternetaccess.com/installer/pia-nm.sh

    ubuntu
    tip: Press Ctrl+Shift+V to paste into the terminal.
  6. Enter the second and last command:
    sudo bash pia-nm.sh

    ubuntu5
  7. If you are prompted for your password, simply enter the password you use when you log into your computer. No stars or any character will appear: this is normal and just a security feature of the Terminal.
  8. The installer will ask you for your username as well as your connection method.
    Simply enter your username as indicated. The next two questions are optional and you can simply press the Enter key to skip them and use the defaults.
    ubuntu6
  9. That's it! You can now connect to PIA using the VPN Connections menu of the networking (arrows or WiFi icon) menu.
    ubuntu7

EASY Setup Guides for Alternate Configurations (Advanced):

PPTP/L2TP/SOCKS Security

The PPTP/L2TP/SOCKS5 protocols are provided for devices lacking compatibility with the Private Internet Access application or OpenVPN protocol. PPTP/L2TP/SOCKS5 should be used for masking one's IP address, censorship circumvention, and geolocation.

If you need encryption, please use the Private Internet Application or OpenVPN protocol with our service.

    Although quite different from a VPN, we provide a SOCKS5 Proxy with all accounts in the event users require this feature.

    SOCKS5 Proxy Usage Guides
    proxy-nl.privateinternetaccess.com port 1080
    Enable port forwarding in the application by entering the Advanced area, enabling port forwarding and selecting one of the following gateways:

    CA Toronto
    CA Montreal
    Netherlands
    Sweden
    Switzerland
    France
    Germany
    Romania
    Israel

    After enabling port forwarding and re-connecting to one of the above gateways, please hover your mouse over the System Tray or Menu Bar icon to reveal the tooltip which will display the port number. You can then enter this port into your software.

    Port Forwarding reduces privacy. For maximum privacy, please keep port forwarding disabled.
IPv6 leak protection disables IPv6 traffic while on the VPN. This ensures that no IPv6 traffic leaks out over your normal internet connection when you are connected to the VPN. This includes 6to4 and Teredo tunneled IPv6 traffic.
    The dns leak protection feature activates VPN dns leak protection. This ensures that DNS requests are routed through the VPN. This enables the greatest level of privacy and security but may cause connectivity issues in non-standard network configurations.

    This can be enabled and disabled in the Windows application, while it is enabled by default on our macOS application.

    We use our own private DNS servers for your DNS queries while on the VPN. After connecting we set your operating system's DNS servers to 209.222.18.222 and 209.222.18.218. When using a DNS Leak testing site you should expect to see your DNS requests originate from the IP of the VPN gateway you are connected to.

    If you change your DNS servers manually or if for some other reason they are changed this does not necessarily mean your DNS is leaking. Even if you use different DNS servers the queries will still be routed through the VPN connection and will be anonymous.
    The internet kill switch activates VPN disconnect protection. If you disconnect from the VPN, your internet access will stop working. It will reactivate normal internet access when you deactivate the kill switch mode or exit the application.

    Users who may be connected to two connections simultaneously (ex.: wired and wireless) should not use this feature, as it will only stop 1 active connection type.


  • United States (US VPN)
    us-california.privateinternetaccess.com
    us-east.privateinternetaccess.com
    us-midwest.privateinternetaccess.com
    us-chicago.privateinternetaccess.com
    us-texas.privateinternetaccess.com
    us-florida.privateinternetaccess.com
    us-seattle.privateinternetaccess.com
    us-west.privateinternetaccess.com
    us-siliconvalley.privateinternetaccess.com
    us-newyorkcity.privateinternetaccess.com

  • United Kingdom (GB VPN)
    uk-london.privateinternetaccess.com
    uk-southampton.privateinternetaccess.com

  • Canada (CA VPN)
    ca-toronto.privateinternetaccess.com
    ca.privateinternetaccess.com

  • Australia (AU VPN)
    aus.privateinternetaccess.com
    aus-melbourne.privateinternetaccess.com

  • New Zealand (NZ VPN)
    nz.privateinternetaccess.com

  • Netherlands (NL VPN)
    nl.privateinternetaccess.com

  • Sweden (SE VPN)
    sweden.privateinternetaccess.com

  • Norway (NO VPN)
    no.privateinternetaccess.com

  • Denmark (DK VPN)
    denmark.privateinternetaccess.com

  • Finland (FI VPN)
    fi.privateinternetaccess.com

  • Switzerland (CH VPN)
    swiss.privateinternetaccess.com

  • France (FR VPN)
    france.privateinternetaccess.com

  • Germany (DE VPN)
    germany.privateinternetaccess.com

  • Ireland (IE VPN)
    ireland.privateinternetaccess.com

  • Italy (IT VPN)
    italy.privateinternetaccess.com

  • Romania (RO VPN)
    ro.privateinternetaccess.com

  • Turkey (TR VPN)
    turkey.privateinternetaccess.com

  • South Korea (KR VPN)
    kr.privateinternetaccess.com

  • Hong Kong (HK VPN)
    hk.privateinternetaccess.com

  • Singapore (SG VPN)
    sg.privateinternetaccess.com

  • Japan (JP VPN)
    japan.privateinternetaccess.com

  • Israel (IL VPN)
    israel.privateinternetaccess.com

  • Mexico (MX VPN)
    mexico.privateinternetaccess.com

  • Brazil (BR VPN)
    brazil.privateinternetaccess.com

  • India (IN VPN)
    in.privateinternetaccess.com