Skip to content

Instantly share code, notes, and snippets.

@Suzhou65
Created September 14, 2020 07:19
Show Gist options
  • Save Suzhou65/a3b46e55f210ba11001ab2a826e7caae to your computer and use it in GitHub Desktop.
Save Suzhou65/a3b46e55f210ba11001ab2a826e7caae to your computer and use it in GitHub Desktop.
Ubuntu 14.04 install PPTP VPN service

Install PPTP

sudo apt-get install pptpd -y

Backup PPTP configuration

sudo cp  /etc/pptpd.conf  /etc/pptpd.local

Editing PPTP configuration

sudo cd /etc
sudo vim pptpd.conf

Add following configuration at the bottom of the configuration

localip 192.168.2.25
remoteip 192.168.2.1-5

localip is your VPS internal exit remoteip is for VPN connect

Backup PPTP Server configuration

sudo cp  /etc/ppp/chap-secrets  /etc/ppp/chap-secrets.local

Editing PPTP user configuration

sudo cd /etc/ppp
sudo vim chap-secrets

Add following users configuration like this

user01 pptpd password01 192.168.2.1
user02 pptpd password02 192.168.2.2
user03 pptpd password03 192.168.2.3
user04 pptpd password04 192.168.2.4
user05 pptpd password05 192.168.2.5

Editing PPTP Server configuration

sudo vim options

check following configuration like this

name pptpd
ms-dns 8.8.8.8
ms-dns 8.8.4.4

Start fail2ban service

sudo service pptpd restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment