Skip to main content
All CollectionsPureVPN LinuxManual Linux
How to setup Guide for Ubuntu
How to setup Guide for Ubuntu

If you’re having a hard time setting up PureVPN on Linux Ubuntu supported devices, Well here’s a setup guide for Ubuntu that you can follow.

Updated over 2 years ago

Starting June 15th, 2021, PureVPN will discontinue offering support for PPTP, L2TP, and SSTP protocols on the majority of VPN locations.

However, at the popular request of our users, we will continue to support the following locations for users to connect using PPTP, L2TP, and SSTP protocols:

Germany: de1.pointtoserver.com
Netherlands: nl1.pointtoserver.com
United Kingdom: ukl1.pointtoserver.com
United States: usil1.pointtoserver.com
United States: ustx1.pointtoserver.com
United States: usca1.pointtoserver.com
United States: usfl1.pointtoserver.com
United States: usny1.pointtoserver.com
United States: uswdc1.pointtoserver.com
Australia: au-sd1.pointtoserver.com

If you’re having a hard time setting up PureVPN on Linux Ubuntu supported devices, here’s a guide on how you can do it in the right and easiest way. Connect and stay secure on the web.

Things to Consider:

Before you begin, please make sure that:

  • You have a working internet connection

  • Linux Ubuntu Supported Device.

  • A Premium PureVPN account (If you haven’t bought yet click here to buy)

Note: Dedicated IP addon can be only be connected with Ras protocol i.e PPTP/L2TP/SSTP/IKEV.

Find your VPN credentials for manual configuration

To find your VPN credentials log into the PureVPN members area. Click 👉 here to visit member area.

  • Login to the member area using your PureVPN registered email address and password.

  • From manage account section, go to the subscriptions tab.

  • On Subscription tab scroll down to be able to view your VPN credentials.

  • You will be able to see and copy your VPN credentials. Note down your PureVPN username and click the eye icon to make your password visible and use it in the manual configuration.

Was this article helpful? Rate and share your comments below. Your input matters to us and everyone else in the Cyber Security Community.

PPTP Configuration Guide for Ubuntu

  • Select the following options:

  1. Click Network Connection Icon.

    1. Go to VPN Connections and select Configure VPN...

  • Click Add

  • Click drop down menu.

  • Select Point-to-Point Tunneling Protocol (PPTP) and click Create.

  • Select the following options:

  1. Enter Connection name: PureVPN PPTP

    1. Enter desired server in Gateway

    2. Insert the desired server: Please refer to the server address shared in the above note.

    3. Enter your PureVPN credentials. Here is how you can find your VPN credentials.

    4. Click Advanced

  • Select the following options:

  1. Use Point-to-Point encryption (MPPE)

    1. Allow BSD data compression

    2. Allow Deflate data compression

    3. Use TCP header compression

    4. Uncheck EAP

    5. Click OK

  • Click Save... and close the Network Connections window.

  • Select the following options:

  1. Click Network Connection Icon.

    1. Go to VPN Connections and select newly created PureVPN PPTP connection.

  • You are successfully connected now. Enjoy the FREEDOM!!

  • Select the following options:

  1. To disconnect VPN. Click Network Connection Icon

    1. Go to VPN Connections and select Disconnect VPN

L2TP Configuration Guide for Ubuntu

  • Open Terminal.

  • To install L2TP dependencies type following commands one by one:

  1. sudo apt-get update

    1. sudo apt-get install network-manager-l2tp

    2. sudo apt-get install network-manager-l2tp-gnome

  • Click the Network icon in top right corner and choose Settings button in bottom left corner.

  • Click the plus + icon on your right to add new VPN connection.

  • Select Layer 2 Tunneling Protocol (L2TP) as your connection type.

  • Enter the following information:

  1. Name: Enter a name for the connection you are adding, i.e. PureVPN

    1. Insert the desired server: Please refer to the server address shared in the above note.

    2. Enter your PureVPN credentials. Here is how you can find your VPN credentials.

  • Click IPsec Settings...

  1. Tick Enable IPsec tunnel to L2TP host and enter Pre-shared key: 12345678.

    1. Then specify connection algorithms in Advanced section:

    2. for phase 1= 3des-sha1-modp1024 and

    3. for phase 2 = 3des-sha1

    4. Сlick OK

  1. Now Click PPP Settings...

    1. Tick Use Point to Point Encryption (MPPE)

    2. Then check/ tick the following:

    3. Allow BSD data compression

    4. Allow Deflate data compression

    5. Use TCP header compression

    6. Сlick OK and then click Add in the top right corner.

  • Enable your VPN by swiping the toggle.

  • You are now connected to PureVPN!

SSTP Configuration Guide for Ubuntu

Here is how you can set up PureVPN on Ubuntu using the SSTP protocol. We have split the process into two steps:

Download and Install required packages

Configure SSTP protocol

Here we go:

Download and Install required packages

Open the Terminal Window and run the following commands step by step:

  1. sudo add-apt-repository ppa:eivnaes/network-manager-sstp

    1. sudo apt-get update

    2. sudo apt-get install network-manager-sstp sstp-client

Make sure you have downloaded the following packages:

For 64-bit:

network-manager-sstp-gnome_1.2.6-0ubuntu3_amd64.deb

sstp-client_1.0.13-0ubuntu1_amd64.deb

libsstp-api-0-dev_1.0.13-0ubuntu1_amd64.deb

For 32-bit:

network-manager-sstp-gnome_1.2.6-0ubuntu3_i386.deb

libsstp-api-0_1.0.13-0ubuntu1_i386.deb

sstp-client_1.0.13-0ubuntu1_i386.deb

* After installing packages. Reboot your system.

Configure SSTP protocol

Click Network Manager Icon

  • Go to VPN Connections and select Configure VPN...

  • Click Add.

  • Click drop down menu.

  • Select Secure Socket Tunneling Protocol (SSTP) and click Create.

  • Enter the following information:

  1. Enter Connection Name PureVPN SSTP

    1. Insert the desired server: Please refer to the server address shared in the above note.

    2. Enter your PureVPN credentials. Here is how you can find your VPN credentials.

    3. Check Ignore certificate warnings

    4. Click Advanced

  • Do the following:

  1. Uncheck Use Point-to-Point encryption (MPPE)

    1. Check the following options:

    2. Allow BSD Data compression

    3. Allow Deflate data compression

    4. Use TCP header compression

    5. Send PPP echo packets

    6. Click OK

  • Click Save and close the Network connections window.

  • Do the following:

  1. Click Network Connection Icon

    1. Go to VPN Connections and select Newly created PureVPN SSTP connection

  • You are connected now. Enjoy the FREEDOM!!

  • To disconnect VPN.

  1. Click Network Connection Icon

    1. Go to VPN Connections and select Disconnect VPN

OpenVPN Configuration Guide for Ubuntu

In this guide, you will learn how to configure PureVPN on Ubuntu using OpenVPN protocol.

  • Click Dash Search for Terminal and open it.

  • Insert command:

  1. sudo apt-get install network-manager-openvpn

    1. Hit enter

  • Type Y and hit enter to continue.

  • Now Insert Command:

  1. sudo apt-get install network-manager-openvpn

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

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

  • Extract the downloaded file.

  • Do the following:

  1. Click Network Connection Icon...

    1. Go to VPN Connections and select Configure VPN...

  • Click Add

  • Click drop down menu.

  • Select OpenVPN and click Create

  • Insert the following info:

  1. Enter Connection name: PureVPN OpenVPN

    1. Enter desired Gateway: Open .ovpn file from OpenVPN folder to get the server address

    2. Select Type: Password from drop-down menu

    3. Enter your PureVPN credentials. Here is how you can find your VPN credentials.

    4. Click the folder icon from CA Certificate

  • Go to OpenVPN downloads folder, select ca.crt and click Open

  • Click Advanced.

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 connection select Use a TCP connection

From Security tab select following options:

From Cipher: Select AES-256-CBC or desired encryption

From HMAC Authentication: Select SHA-1

Form TLS Authentication tab:

Select Use additional TLS authentication

Click folder icon next to Key File

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

Do the following:

Select 1 from Key Direction

Click OK

  • Click Save... and close the Network Connections window

  • Now:

  1. Click Network Connection Icon...

    1. Go to VPN Connections and select the newly created PureVPN OpenVPN connection.

  • You are connected now. Enjoy the FREEDOM!

  • To disconnect VPN

  1. Click Network Connection Icon.

    1. Go to VPN Connections and select Disconnect VPN.

IKEV Configuration Guide for Ubuntu

  • Go to Terminal window and type following commands one by one in order to install the required packages:

  1. sudo bash

    1. sudo apt-get update

    2. sudo apt-get install strongswan libcharon-extra-plugins

  • Now create a vpn connection profile as follows:

  1. cat > /etc/ipsec.conf <<EOF #ipsec.config is the name of profile

    1. conn ike #ike is the connection name

    2. keyexchange=ikev2

    3. dpdaction=clear

    4. dpddelay=300s

    5. keyingtries=1

    6. eap_identity="purevpn0sxxx" #enter your purevpn username

    7. leftauth=eap-mschapv2

    8. left=%defaultroute

    9. leftsourceip=%config

    10. right=de-ikev.ptoserver.com #enter your desired ikev server address here

    11. rightauth=pubkey

    12. rightsubnet=0.0.0.0/0

    13. rightid=%any

    14. rightsendcert=never

    15. type=tunnel

    16. auto=add

EOF

  • Now create a vpn credentials profile as follows:

  1. cat > /etc/ipsec.secrets <<EOF

    1. "purevpn0sxxx" : EAP "password" EOF

  • Now copy the ca certificate file:

  1. cd /etc/ipsec.d/cacerts/

    1. cp /etc/ssl/certs/USERTrust_RSA_Certification_Authority.pem /etc/ipsec.d/cacerts/USERTrust_RSA_Certification_Authority.pem

  • Finally, in order to run/activate the vpn connection:

  1. sudo ipsec restart

    1. sudo ipsec up ike

  • To disconnect the vpn connection:

  1. ipsec down ike

Did this answer your question?