Warning! PPTP VPN protocol is not secured! It used just to bypass Internet restrictions.
Note! Linux based operating system must be installed on the server.
apt-get install pptpd
Open configuration file /etc/ppp/chap-secrets
and add new users:
username * password *
Open configuration file /etc/ppp/pptpd-options
and add the next DNS records:
ms-dns 8.8.8.8
ms-dns 8.8.4.4
Open configuration file /etc/ppp/pptpd-options
and modify the necessary parameter (timeout in seconds):
idle 900
iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -i eth0 -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT
iptables-save
netfilter-persistent save
Open configuration file /etc/sysctl.conf
and uncomment the next line:
net.ipv4.ip_forward=1
sysctl -p
/etc/init.d/pptpd start