• Our hottest-selling 5-year plan at 89% off is ending tonight at 11:59 PM.

  • Upgrade my plan now ** Few Hours Left **

Don’t miss this last call! We’re saying good-bye to our 89% off hottest selling 5-year plan tonight. Upgrade now!  

Command Line Setup in Debian Linux PPTP

Jul 07, 2014
Sep 01, 2022
Download PDF
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

Setting up a VPN on your Debian Linux has never been easier. In this guide, you will learn how to set up PureVPN on your Linux Debian (PPTP) using the command line. Here’s how to get started:

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 Debian Linux PPTP.
  • Follow the steps below to configure PureVPN PPTP on Debian 
#install the PPTP software
apt-get install pptp-linux
#edit /etc/ppp/chap-secrets
vi /etc/ppp/chap-secrets.
  • Insert the following:
Username PPTP Password *
# replace Username with your PureVPN username
# replace Password with your PureVPN password
#create /etc/ppp/peers/pure-usca
vi /etc/ppp/peers/pure-usca.
  • Add the following details:
pty “pptp usca1.pointtoserver.com –nolaunchpppd”
name purevpnXXXX
remotename PPTP
file /etc/ppp/options.pptp
refuse-eap noauth.
  • Adding a route to the routing table
  • To automatically add an entry whenever a VPN connection is established create and edit.
vi /etc/ppp/ip-up.d/pure-usca-route.
  • Add the following content
route add -net dev ppp0.
  • Make the file executable
chmod +x /etc/ppp/ip-up.d/pure-usca-route.
  • Now Connect VPN:
sudo pppd call pure-usca.
  • To check the logs run this command:
tail -f /var/ log/ messages.

Caution: If you are looking for higher security, then please follow this 👉guide to disable your IPv6

Was this article helpful? Rate and share your comments below. Your input matters to us and everyone else in the Cyber Security Community.

How helpful did you find this answer?

Comments (17 )


  1. PureVPN Team says:

    We are sorry for the inconvenience. It seems PPTP is blocked by your ISP or there aresome settings issues.
    First, we request you to configure PPTP on other device to make sure it is not blocked, if it is not blocked then join us on live chat so we may help you find correct settings to get it working.

    Thanks for being patient!

  2. Elad says:

    Jul 29 18:14:14 ip158s pppd[15029]: pppd 2.4.6 started by root, uid 0
    Jul 29 18:14:14 ip158s pppd[15029]: Using interface ppp0
    Jul 29 18:14:14 ip158s pppd[15029]: Connect: ppp0 /dev/pts/2
    Jul 29 18:14:46 ip158s pppd[15029]: Modem hangup
    Jul 29 18:14:46 ip158s pppd[15029]: Connection terminated.
    Jul 29 18:14:46 ip158s pppd[15029]: Exit.

  3. José Azevedo says:

    If anyone is having problems using this instructions on Ubuntu Server is because the command “pppd call pure-us7” needs the sudo, so it should be “sudo pppd call pure-us7”. Also remember to change the purevpnXXXX with your PureVPN username on /etc/ppp/peers/pure-us7.

  4. PureVPN Team says:

    Hi Erik,

    I am extremely sorry you had to face this issue, In order to help you out we need to see logs, can you kindly send us your system logs at [email protected] so we can help you out. You can also join us on 24/7 live chat.

    Thanks for being Patient!

  5. ben says:

    If you want to set up ubuntu with no xwindows to do this, you can follow these instructions with the following addition:

    in the /etc/ppp/ip-up.d/ file add the line “route add default dev ppp0” So the whole file should look like:

    route add -net dev ppp0
    route add default dev ppp0

    In addition, if you want to make the vpn connection persist (ie: always-on), then you can add the following three lines to the /etc/ppp/peers/ file:

    holdoff 0
    maxfail 0

    Persist will tell pppd to auto-redial if the connection is lost, holdoff 0 means it will attempt a redial immediately, and maxfail 0 means it will attempt to reconnect forever.

    There is probably a way using iptables to also create a killswitch but that’s a task for another day.

  6. PureVPN Team says:


    Thanks for reaching out to us. In this line pty “pptp us7.purevpn.net –nolaunchpppd” you should enter japan server address which is jp-tk1.pointtoserver.com or jp1.pointtoserver.com

    Feel free to contact us if you still have any question!

  7. Dongwon Lee says:

    How can I make a connection with specific location.
    ex) Japan

  8. PureVPN Team says:


    Thanks for reaching out to us. Having connected with VPN please check your IP first at http://www.ip2location.com to verify either you are connected to VPN or not. If you are connected to router please make sure PPTP/L2TP pass through option should be enabled in your router.

    Feel free to contact us if you have further question/suggestion!

  9. PureVPN Team says:


    Thanks for your precious suggestion. You know when we send ‘credentials’ email it contains two kinds of credentials first, VPN username and password and Second, Member Area credentials, some users does not differentiate between two so, we write ‘purevpnXXXX’ in out tutorials to make it clear that VPN username looks like this.

    I hope now you are clear about this, if you still have any question or suggestion do write to us, we will be more than happy to hear from you!

  10. Dankex says:


    I’ve successfully followed your tutorial and pptp seems to be working as indicated by its log: http://pastebin.com/HnQcYZAN I can also see a new if called ppp0 as seen by ifconfig: http://pastebin.com/wVADQ6CL However, traceroute command tells me that no traffic is being routed to purevpn and I can’t tell if my packets are cyphered.

    Can you help me please?

  11. PureVPN Team says:


    I am sorry for the inconvenience. Could you please share with us which server address you are using so that we can assist you accordingly.

  12. Henry says:

    For Gnome3 users, you can use openvpn support:
    apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome
    Then follow Ubuntu configuration

  13. leodx says:

    Hello, i’ve followed this guide but when i try to connect, tail give this output:

    Jan 7 18:08:25 nas pppd[7984]: pppd 2.4.5 started by root, uid 0
    Jan 7 18:08:25 nas pppd[7984]: Using interface ppp0
    Jan 7 18:08:25 nas pppd[7984]: Connect: ppp0 /dev/pts/2
    Jan 7 18:08:45 nas pppd[7984]: Modem hangup
    Jan 7 18:08:45 nas pppd[7984]: Connection terminated.
    Jan 7 18:08:45 nas pppd[7984]: Exit.

    What I’ve done wrong? I’m on openmediavault 2.1

    • andyhally says:

      replace “name purevpnXXXX” with “name yourusername”

    • Erik says:

      I’m having this same issue.. At “name purevpnXXX” I have entered the user name matching the user name listed under VPN credentials from the original email. This is driving me crazy. Did you get it to work?