Now introducing 7-Day premium trial to work, binge, & stay secure online

PureVPN is now Zero-Log Certified by Altius IT, one of the leading independent US-based Auditors. Read More 

How to Setup PureVPN PPTP via Command Line on Linux Debian/CentOS

Dec 26, 2019
Sep 30, 2020
0 Comments
Download PDF

Don’t know how to get started with PureVPN on Debian/CentOS? Check out our tutorial, put together to help you configure PureVPN using PPTP via the command line on Linux:

1 First check if the ppp-generic module exists. If it doesn’t, the connection will not work. Open your terminal and type:

modprobe ppp-generic

2 Next, install the pptp daemon by typing the following in your terminal:

sudo apt-get install pptp-linux pptpd ppp curl

Press “y” and then enter to download and install the packages.

3 Run the command to open Editor and type the following details as mentioned:

sudo nano /etc/ppp/chap-secrets

Now enter the chap-secrets file as shown below:

vpnusername<tab>PPTP<tab>vpnpassword<tab>*

Press Tab button to give space in place of <tab>

Press CTRL+O to save the file, and CTRL+X to exit the editor.

4 Run the following command to create a PureVPN file:

sudo nano<space>/etc/ppp/peers/purevpn

Enter the following information:

pty “pptp usca.pointtoserver.com –nolaunchpppd”
name yourVPNusername
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam purevpn

To save the file, press CTRL+O.  To exit the editor, press CTRL+X.

Please note that we have currently used usca.pointtoserver.com as the server address. You can, however, choose any server of your choice from here

5 Now run the command:

sudo nano /etc/ppp/options.pptp

(Please make sure there is space after sudo and nano)

Edit the file as follows and make sure there is no ‘#’ sign before these lines:

lock
noauth
refuse-pap
refuse-eap
refuse-chap
nobsdcomp
nodeflate
require-mppe-128

Once this is done, Press CTRL+O to save and CTRL+X to exit.

6 Now run the command below and add the following line in it.

sudo nano /etc/ppp/ip-up.local

/sbin/route add default ppp0

Once done, Save and Exit the file.

7 In order to execute the file, run the following command:

sudo chmod 755 /etc/ppp/ip-up.local

8 Connect to the VPN by running:

sudo pppd call purevpn

9 Use the following command to check the accuracy of your VPN IP and location:

curl ipinfo.io

10 To disconnect the VPN, type the following command:

sudo pkill pppd

Note: If you are unable to connect, please check your connection logs by running the following command:

sudo cat /var/log/messages | grep pppd

How helpful did you find this answer?

Comments (0 )