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
Jun 22, 2020
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.

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

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:


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


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:

nolaunchpppd and debug contains 2 “-” symbols.

pty “pptp –nolaunchpppd –debug”
name yourVPNusername
remotename PPTP
file /etc/ppp/options.pptp
ipparam purevpn

Please note that we have currently used 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


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

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:


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

  • sudo pkill pppd

How helpful did you find this answer?

Comments (0 )

Comments are closed.