Published 09-15-2017 20:29:22

Install pptp-linux package

sudo apt-get install pptp-linux

Create a PPTP connection profile

sudo pptpsetup --create <nameofvpn> --server <vpn.server.com> --username vpnuser

When you hit ENTER you should be asked for the VPN password.

The profile will be saved in /etc/ppp/peers/

To enable the VPN connection

sudo pon <profilename>

You can see your PPTP connection using ifconfig -s. It should be listed under ppp0.

To kill the VPN connection

sudo poff

A route may need to be added once the VPN connection is made. To do this, type:

sudo route add -net "" dev "ppp0"

To check if the route is successful:

netstat -a | grep "/var/run/pptp/"