wget https://github.com/halida/install_script/raw/master/pptp-debian.sh sh ./pptp-debian.sh
- Prepare your server with a fresh install of Ubuntu 14.04 or 12.04 LTS.
- Save the script as vpnsetup.sh on your VPS. Edit it in your favorite editor. From there, change the first line to #!/bin/bash, replace the three variables IPSEC_PSK, VPN_USER and VPN_PASSWORD as mentioned above, and change PRIVATE_IP=… and PUBLIC_IP=… to the actual IP addresses of your VPS. In case your VPS is run on its public IP directly with no private IP, just use that public IP for both.
- Save and exit the editor. Finally, run bash vpnsetup.sh to install.