Black Friday Upgrade offer is live! Get 89% off upgrading your PureVPN plan today. Upgrade to 5-year plan now! > Offer valid for existing users only.

Command Line Setup in Linux CentOS PPTP

Sep 28, 2016
Nov 17, 2022
2 Comments
Download PDF
NOTE
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 are looking for a guide on setting up PureVPN on Linux CentOS via command line, you are in the right place. Follow this guide for command line setup on Linux CentOS with PureVPN.

Things to Consider:

  1. You have a working internet connection
  2. Linux CentOS
  3. A Premium PureVPN account (if you haven’t bought it yet, click👉 here to buy)
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.
How to command line setup in linux CentOS PPTP.
  • Run the following commands:
sudo yum update
sudo yum install pptp
sudo modprobe nf_conntrack_pptp
sudo modprobe ppp_mppe.
  • Run sudo nano /etc/ppp/chap-secrets to edit the chap-secrets file as shown below:
vpnusernamePPTPvpnpassword*
  • Press CTRL+O to save the file, and CTRL+X to exit the editor.
  • To create a PureVPN file, and enter the following information:
run sudo nano/etc/ppp/peers/purevpn
pty “pptp usca1.pointtoserver.com –nolaunchpppd” In this command make sure to enter two “-” symbols before “nolaunchpppd”
pty “pptp usca1.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 👉usca1.pointtoserver.com as the server address. You can choose any server of your choice. The list of servers is available in the above note.
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.
  • It will set the default route to ppp0. and add the following line.
Run sudo nano /etc/ppp/ip-up.local
/sbin/route add default ppp0.
  • To save the file, press CTRL+O. To exit the editor, press CTRL+X. 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.
Was this article helpful? Rate and share your comments below. Your input matters to us and everyone else in the Cyber Security Community.
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.