# Install
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install pptpd
#Config DNS
sudo nano /etc/ppp/pptpd-options, and enter the following:
ms-dns 8.8.8.8
ms-dsn 8.8.4.4
#Config Password:
sudo nano /etc/ppp/chap-secrets
acount [TAB] pptpd [TAB] password [TAB] IP addresses
# Config IP
sudo nano /etc/pptpd.conf, and enter the following:
localip 10.168.10.1
remoteip 10.168.10.10-20
# Config IP forward and IP Nat
net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -s 10.168.10.0/24 -o eth0 -j MASQUERADE