How to Setup PPP VPN on VULTR VPS Debian/Ubuntu

How to Setup PPP VPN on VULTR VPS Debian/Ubuntu

How to Setup PPP VPN on VULTR VPS Debian/Ubuntu

Install Packages

Install the pptpd package on your VPS with the following command:

Configuration

Insert new settings to /etc/pptpd.conf and /etc/ppp/pptpd-options by running the following commands:

Edit /etc/ppp/chap-secrets to insert VPN users.

Restart the pptpd service.

Enable Forwarding

Run this command to enable IPv4 forwarding. IPv4 forwarding must be enabled for the VPN to work properly.

Make this change permanent.

Setup Routing

Create a network startup script to configure iptables.

Insert content to the script:

Setup this script to be executable.

Run the script to apply these rules to iptables.

Complete

Now you can connect to your own VPN server from your PC or mobile device.