Command Line Setup in Debian Linux

#install the PPTP software

apt-get install pptp-linux

#edit /etc/ppp/chap-secrets

vi /etc/ppp/chap-secrets

and insert the following:

Username PPTP Password *

# replace Username with your PureVPN username
# replace Password with your PureVPN password

#create /etc/ppp/peers/pure-us7 with something like the following:

vi /etc/ppp/peers/pure-us7

and add the following details:

pty "pptp --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 the /etc/ppp/ip-up.d/pure-us7-route

vi /etc/ppp/ip-up.d/pure-us7-route

Add the following content

route add -net dev ppp0

Make the file executable

chmod +x /etc/ppp/ip-up.d/pure-us7-route

Now Connect VPN:

pppd call pure-us7

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

Rate This Article

  • PureVPN Team

    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 so we can help you out. You can also join us on 24/7 live chat.

    Thanks for being Patient!

  • ben

    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.

  • PureVPN Team


    Thanks for reaching out to us. In this line pty “pptp –nolaunchpppd” you should enter japan server address which is or

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

    • Leda Ferreira

      How to connect from Brazil?

      • PureVPN Team


        Thanks for reaching out. You can use Brazil server address while connecting!

        Let us know if you need further assistance!

  • PureVPN Team


    Thanks for reaching out to us. Having connected with VPN please check your IP first at 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!

  • PureVPN Team


    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!

  • PureVPN Team


    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.