How to set up PPTP for Raspberry Pi Desktop (Debian)

Learn how to setup PPTP VPN client on Raspberry Pi Debian. Follow the simple steps to manually connect VPN PPTP client on Raspberry Pi.

Written By Fahad Ahmed

Updated at August 25th, 2023

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)
  •  Go to the Menu bar and select/ open the Terminal from there.

open-Terminalon Raspberry Pi

  • Now you need to install PPTP packages. Type the following to install it:
    1. sudo bash
    2. sudo apt-get install pptp-linux

  •  Now to create a PureVPN profile, run the following command:
    1. sudo nano /etc/ppp/peers/purevpn
  •  Enter the following information:
  1. pty "pptp ukl1.pointtoserver.com --nolaunchpppd --debug"
  2. name purevpn0sxxxxx #enter your purevpn username in place of purevpn0sxxx
  3. password xxxxx #enter your purevpn account password in place of xxxxx
  4. remotename PPTP
  5. require-mppe-128
  6. require-mschap-v2
  7. refuse-eap
  8. refuse-pap
  9. refuse-chap
  10. refuse-mschap
  11. noauth
  12. debug
  13. persist
  14. maxfail 0
  15. defaultroute
  16. replacedefaultroute
  17. usepeerdns

 

Save and exit the editor.

  •  In order to connect to the VPN, run the command:
    1. sudo pon purevpn
  •  You are connected to PureVPN now, to check your current IP and location run the command:

  •  In order to disconnect to the VPN, run the command:
    1. sudo pkill pppd