How to Setup PureVPN L2TP on MX Linux 19.1

Jun 04, 2020
May 06, 2021
Download PDF

The following is required for L2TP-VPN client to work on MX Linux:

  • A working installation of MX Linux (This guide uses MX Linux 19.1 64-bit)
  • A device with internet access.
  • Own a premium PureVPN account (If you do not already own one, you can buy a subscription from here)
1 Go to the Launcher option and select/open the “Xfce Terminal” from there

2 Now you need to install L2TP packages. Type the following commands one by one:

sudo apt-get update

sudo apt-get install network-manager-l2tp-gnome network-manager-strongswan libstrongswan-standard-plugins libstrongswan-extra-plugins

sudo apt-get install network-manager-l2tp

sudo apt-get install xl2tpd

3 Click on “Ethernet Network Connections” Icon then “VPN Connections” and then select “Add a VPN Connection…” option.

4 Select ‘Layer 2 Tunneling Protocol (L2TP)’ from the drop-down list under the VPN Connection Type and click on the “Create” button.

5 Insert the following info:

  • Insert Connection name: PureVPN
  • Insert Gateway: (Here we use you can also use your desired server address, click here to view the complete list)
  • Insert Username provided by PureVPN
  • Insert Password provided by PureVPN

6 Now, Go to the ‘IPsec Settings…’ option.

Check the ‘Enable IPsec tunnel to IPsec host’
Pre-share key: 12345678
Then specify connection algorithms in the Advanced section:

For phase 1= 3des-sha1-modp1024 and
For phase 2 = 3des-sha1
Enforce UDP Encapsulation: Unchecked
Click ‘OK’

Now, go to the ‘PPP Settings…’.

Only allow the following options:


Also, select the following:

  • Allow BSD data compression
  • Allow Deflate data compression
  • Use TCP header compression

Click “OK”

7 Click “Save” and close the “Network Connections” window.

8 Now Click on Ethernet Network Connections” Icon, go to the “VPN Connections” tab, and click on the newly created VPN connection, to connect to PureVPN

9 You are now connected to PureVPN!

How helpful did you find this answer?

Comments (0 )