Start Your 3-Day Risk-Free VPN Trial at only $0.99

Command Line Setup in Linux CentOS (PPTP)

Service Delivery
Sep 28, 2016
Jun 25, 2019
2 Comments
Download PDF

Things to Consider:

Before you begin, please make sure that:

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

1 Run the following commands:

sudo yum update
sudo yum install pptp
sudo modprobe nf_conntrack_pptp
sudo modprobe ppp_mppe

2 Run sudo nano /etc/ppp/chap-secrets to edit the chap-secrets file as shown below:

vpnusername<space>PPTP<space>vpnpassword<space>*

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

3 To create a PureVPN file, run sudo nano<space>/etc/ppp/peers/purevpn and enter the following information:

Note: pty “pptp usca.pointtoserver.com –nolaunchpppd” In this command make sure to enter two “-” symbols before “nolaunchpppd”

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 choose any server of your choice. The list of servers is available here

4 Run the command: sudo nano/etc/ppp/options.pptp Be 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+X to exit.

5 Run sudo nano /etc/ppp/ip-up.localand add the following line. By doing so, it will set the default route to ppp0.

/sbin/route add default ppp0

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

7 In order to execute the file, run: sudo chmod 755 /etc/ppp/ip-up.local

  • Connect to the VPN by running sudo pppd call purevpn
  • Run curl ipinfo.io to check the accuracy of your VPN IP and location.
  • To disconnect the VPN, run sudo pkill pppd
  • If you are unable to connect, please check your connection logs by running sudo cat /var/log/messages | grep pppd 

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.

No Yes

Comments (2 )

2 Comments

  1. ѡhoah this weblog is wonderful і like reading your articles.
    Keep up the great work! You recοgnize, a lot of individuaⅼs are hunting around for this information, you could help them greatly.

    see this website : Ηow To Passwοгd Protect Folder Ᏼusiness Using Your
    Childhoօd Memoгies

  2. Greg Resler says:

    The option on /etc/ppp/peers/purevpn should be “–nolaunchpppd” (dash dash). Also, be careful that the dash and quotes don’t copy/paste as the fancy character versions. Delete those characters and type them from your terminal manually.