Introducing PureSquare – for security beyond VPNs

Visit our website

Don’t worry about forgetting your passwords ever again with the all-new password manager. Try PureKeep

OpenVPN Configuration Guide for Linux/Ubuntu Version 16

Jul 07, 2014
Aug 14, 2020
Download PDF

OpenVPN is hands down one of the most sought-after protocols that work on just about any device out there. If you want to setup OpenVPN for a Linux/Ubuntu device, look no further than this guide.

Things to Consider:

Before you begin, please make sure that:

  • You have a working internet connection
  • Ubuntu Supported Device.
  • A Premium PureVPN account (if you haven’t bought it yet, click here to buy)

Here is how you can configure OpenVPN on Linux/Ubuntu (Newer Version).

1 Click on Dash, Search for Terminal and open it.

1 openvpn on ubuntu

2 Insert command:

 sudo apt-get install network-manager-openvpn

and hit enter

2 openvpn on ubuntu

3  Type “Y” and hit enter to continue.

3 openvpn setup on ubuntu

Now Insert Command: 

sudo apt-get install network-manager-openvpn
sudo apt-get install network-manager-openvpn-gnome

4  Once installation completes, close Terminal and download the required OpenVPN File from here

4 openvpn setup on ubuntu

5  Extract the downloaded file.

5 ubuntu openvpn

6 Do the following:

  • Click on “Network Connection Icon…
  • Go to VPN Connections and select “Configure VPN…


7  Click on “Add


8 Click on drop down menu.


9 Select “OpenVPN” and click “Create


10 Insert the following info:

  • Insert Connection name: PureVPN OpenVPN
  • Insert desired Gateway: Open .ovpn file from OpenVPN folder to get the server address
  • Select Type: Password from drop down menu
  • Insert Username provided by PureVPN
  • Insert Password provided by PureVPN
  • Click on folder icon from CA Certificate


11 Go to OpenVPN downloadeds folder, select ca.crt and click “Open


12 Click on “Advanced.


13 From General tab select following options:

  • Check Use custom gateway port: For UDP insert 53 and For TCP insert 80
  • Check Use LZO data compression

Note: For TCP connectoin select “Use a TCP connection”


14 From Security tab select following options:

  • From Cipher: Select AES-256-CBC or desired encryption
  • From HMAC Authentication: Select SHA-1


15 Form TLS Authentication tab:

  • Select Use additional TLS authentication
  • Click on folder icon next to Key File


16 Go to OpenVPN downloaded folder, select Wdc.key and click “Open


17 Do the following:

  • Select “1” from Key Direction
  • Click on “OK


18 Click on “Save…” and close the “Network Connections” window


19 Now:

  • Click on “Network Connection Icon…
  • Go to VPN Connections and select newly created “PureVPN OpenVPN” connection.


20 You are connected now. Enjoy the FREEDOM!!!!!!!!!


To disconnect VPN:

  • Click on “Network Connection Icon.
  • Go to VPN Connections and select “Disconnect VPN

Caution: If you are looking for higher security, then please follow this guide to disable your IPv6

Please use the comment box for your suggestions & feedback. For additional help, please submit support ticket with errors and screen shots (if possible) OR Contact our 24/7 live chat.

How helpful did you find this answer?

Comments (21 )


  1. jacob says:

    This setup guide does not work for Ubuntu 18.04, your CLI works but is a pain to use and I would perter to have my connection in the network manager working again.

  2. PureVPN Team says:

    We are sorry for the inconvenience. We would suggest you change DNS change settings on your system to OpenDNS i.e and then try to access the web page

    If issue persists then kindly tell us what error you get while accessing web page? so we may assist you accordingly.

    Also, we would su

  3. PureVPN Team says:

    We do understand your concern and your suggestion has been forwarded to concerned department for further evaluation.

    Let us know if we can assist you further!

  4. dividebyzero says:

    I tried using OpenVPN on my Ubuntu 15.04 (in Netherlands), but although the connection would be set up OK, I could not load any webpages. PPTP worked just fine, though!… UPDATE: it stopped working! =P

  5. PureVPN Team says:


    We are sorry for the inconvenience. You are suggested to setup PureVPN through command line this might help

    If you still face any issue then feel free to join us on 24/7 live chat so we may assist you in better way!

  6. Dima Medvedev says:

    I get ‘Can’t import VPN connection’ error message:

  7. Mikael Orberg says:

    Any plans of building a PureVPN app for linux? Like the one for Windows.
    I really like the options to choose mode and the easy switching between servers were as the linux approach with OpenVPN is bit more cumbersome. It’s great if you’re only using one specific server all the time though.

    • PureVPN Team says:


      Thanks for reaching out. You are right an app for Linux could be very handy, as per now its not in our plan but we have noted down your valuable suggestion for future consideration.

      Keep writing!

      • freespaz says:

        I agree. We run Pure on windows because of the options, and now I have a system that has to run linux, But I still really want that customization and options that I’m using in my windows machine. 🙂 I don’t think that we’re the only two people thinking this either.

  8. PureVPN Team says:


    Thanks for reaching out. You are requested to follow this tutorial

    If you face any issue then feel free to join us on 24/7 live chat, we will happy to assist you!

  9. Luis Reyes says:

    I was able to successfully configure PureVPN on my machine running Lubuntu 16.04 following the instructions above step by step. Thank you so much. I am a happy new customer.

  10. Andrea Perrone says:

    how do I connect to openvpn server on ubuntu server ( without GUI )

  11. PureVPN Team says:

    Hi Capar,

    Thanks for reaching out. The above guide is valid for 16.04, kindly let us know what issue you are facing in following above tutorial so we may assist you in better way.

    Looking forward to hear from you!

  12. Caspar Wrede says:

    Please update for Ubuntu 16.04!

  13. Jake Catayoc says:

    In the latest Ubuntu 16.04 LTS, network-manager-openvpn-gnome is no longer automatically installed as a dependency for network-manager-openvpn, so you will have to include it in your apt-get install list:

    sudo apt-get install network-manager-openvpn network-manager-openvpn-gnome

  14. PureVPN Team says:


    Thanks for reaching out to us. Kindly try to connect with UDP on any other device for testing purpose. If you are unable to connect UDP on other device, it means your ISP provider has blocked UDP.
    If you are able to connect UDP on other device and facing problem only on one device, so kindly tell me the error you are getting, so I may assist you in better way.

    Have a good day!

  15. Gio says:

    I am not able to use UPD instead of TCP, it is not connecting to the VPN network.

  16. PureVPN Team says:

    Hi Ameer,

    I am Glad that you were able to help your friend and I feel great when our valuable users like you are satisfied with our assistance. If you ever face any issue, always feel free to contact us, we would be more than happy to serve you and your friend:)
    Have a great day!

  17. Ameer Rizvi says:

    sorted out the setup for a friend who came in with his ubuntu PC, got the basic stuff done with the help of the guide, the customer service live chat was really helpful to rectify connection issues later …