Buy VPN to Get A Better and Secure Internet Experience. Try our exclusive risk-free 7-day trial at $0.99 only!
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:
Before you begin, please make sure that:
#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-usca with something like the following:
vi /etc/ppp/peers/pure-usca
and add the following details:
pty "pptp usca.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 the /etc/ppp/ip-up.d/pure-usca-route
vi /etc/ppp/ip-up.d/pure-usca-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-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
Please use the comment box below for your suggestions & feedback. For additional help, please submit support ticket with errors and screen shots (if possible) OR contact our 24/7 live chat support.
Comments (17 )
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!
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.
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.
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!
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:
#!/bin/bash
route add -net 10.0.0.0/8 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:
persist
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.
Hi,
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!
How to connect from Brazil?
Hi,
Thanks for reaching out. You can use Brazil server address br1.pointtoserver.com while connecting!
Let us know if you need further assistance!
How can I make a connection with specific location.
ex) Japan
Hi,
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!
Hi,
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!
Hello.
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?
Hi,
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.
For Gnome3 users, you can use openvpn support:
apt-get install openvpn network-manager-openvpn network-manager-openvpn-gnome
Then follow Ubuntu configuration
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
replace “name purevpnXXXX” with “name yourusername”
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?