Now introducing 7-Day premium trial to work, binge, & stay secure online

PureVPN is now Zero-Log Certified by Altius IT, one of the leading independent US-based Auditors. Read More 

How to Setup PPTP for Raspberry Pi Desktop (Debian)

Jun 04, 2020
Sep 25, 2020
0 Comments
Download PDF

The following is required for setting a PPTP-VPN connection on Raspberry Pi.

  • A working installation of Debian (This guide uses the official supported Raspberry Pi operating system based on Debian Buster, version February 2020)
  • Own a premium PureVPN account (If you do not already own one, you can buy a subscription from here)

 

1 Go to the Menu bar and select/open the “Terminal” from there.

open-Terminalon Raspberry Pi

2 Now you need to install PPTP packages. Type the following to install it:

  • sudo bash
  • sudo apt-get install pptp-linux pptpd ppp curl

install PPTP packages on Raspberry Pi

3 Run the following command to open the Editor and enter details as mentioned:

  • sudo nano /etc/ppp/chap-secrets
4 Now edit the chap-secrets file as shown below:

vpnusername<tab>PPTP<tab>vpnpassword<tab>*

Press Tab button to give space in place of <tab>

Edit the chap-secrets file on Raspberry Pi

Note:

Press CTRL+O to save the file, and CTRL+X to exit the editor.

5 Now to create a PureVPN profile, run the following command:

  • sudo nano<space>/etc/ppp/peers/purevpn

And enter the following information:

Note
nolaunchpppd and debug contains 2 “-” symbols.

pty “pptp usca.pointtoserver.com –nolaunchpppd –debug”
name yourVPNusername
remotename PPTP
require-mppe-128
file /etc/ppp/options.pptp
ipparam purevpn

Enter information on GNU Nano 3.2

Please note that we have currently used usca.pointtoserver.com as the server address. You can choose any server of your choice by clicking here.

6 Now run the mentioned command and edit the file as following, make sure that there is no ‘#’ sign before these lines:

  • sudo nano /etc/ppp/options.pptp

lock
noauth
refuse-pap
refuse-eap
refuse-chap
nobsdcomp
nodeflate
require-mppe-128

run the mentioned command

7 Now run the following command, add the mentioned line in it ans save/exit the file.

  • sudo nano /etc/ppp/ip-up.local
  • /sbin/route add default ppp0

/sbin/route add default ppp0

8 In order to execute the VPN profile, run the following command:

  • sudo chmod 755 /etc/ppp/ip-up.local
9 In order to connect to the VPN, run the command:

  • sudo pppd call purevpn
10 You are connected to PureVPN now, to check your current IP and location run the command:

curl ipinfo.io

Now connected to VPN Using PPTP

11 In order to disconnect to the VPN, run the command:

  • sudo pkill pppd

How helpful did you find this answer?

Comments (0 )