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 tthe following details:

pty "pptp us7.purevpn.net --nolaunchpppd"
 name purevpnXXXX
 remotename PPTP
 file /etc/ppp/options.pptp
 require-mppe-128
 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

#!/bin/bash
route add -net 10.0.0.0/8 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