Introducing PureSquare – for security beyond VPNs

Visit our website

Don’t worry about forgetting your passwords ever again with the all-new password manager. Try PureKeep

Command Line Setup in Linux CentOS PPTP

Dec 26, 2019
Feb 23, 2023
Download PDF

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 member area. Click 👉 here to visit member area.

  • Login to the Member area using your PureVPN registered email address and password.
  • On subscriptions 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 on 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:


  • 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 –nolaunchpppd” In this command make sure to enter two “-” symbols before “nolaunchpppd”
pty “pptp –nolaunchpppd”
name yourVPNusername
remotename PPTP
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 👉 as the server address. You can choose any server of your choice. The list of servers is available in the above note.
    1. Germany:
    2. Netherlands:
    3. United Kingdom:
    4. United States:
    5. United States:
    6. United States:
    7. United States:
    8. United States:
    9. United States:
    10. Australia:

Run the command: sudo nano/etc/ppp/options.pptp Be sure there is no ‘#’ sign before these lines.

  • 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

  • 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 (0 )