Skip to main content

How to setup Command Line in Debian Linux (PPTP)

The following guide will help you understand PureVPN Debian command line setup for Linux devices

Updated over 3 years ago

Starting June 15th, 2021, PureVPN will discontinue offering support for PPTP, L2TP, and SSTP protocols on the majority of VPN locations.

However, at the popular request of our users, we will continue to support the following locations for users to connect using PPTP, L2TP, and SSTP protocols:

Germany: de1.pointtoserver.com
Netherlands: nl1.pointtoserver.com
United Kingdom: ukl1.pointtoserver.com
United States: usil1.pointtoserver.com
United States: ustx1.pointtoserver.com
United States: usca1.pointtoserver.com
United States: usfl1.pointtoserver.com
United States: usny1.pointtoserver.com
United States: uswdc1.pointtoserver.com
Australia: au-sd1.pointtoserver.com

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:

  • You have a working internet connection

  • Linux CentOS

  • A Premium PureVPN account (if you haven’t bought it yet, click here to buy)

#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

Did this answer your question?