How to setup a VPN (pptpd) server on your VPS
I need PPTP server/Proxy setup on a Ubuntu VPS I currently have.
1. Order a VPS hosting on VPSlink.
2. Install Ubuntu on my VPS.
3. Install VPN.
1) Install pptpd
# apt-get install pptpd
2) Setting the IP range
# vi /etc/ppt
localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245
3) add a user for ppp
#vi /etc/ppp/chap-secrets
username pptpd password *
4) restart pptpd server
# /etc/init.d/pptpd restart
5) setting up DNS
# vi /etc/ppp/options
add
ms-dns 208.67.222.222
ms-dns 208.67.220.220
6) setting forwad options
# vi /etc/sysctl.conf
modify below line
net.ipv4.ip_forward=1
7) To make the changes to sysctl.conf take effect, use the following command.
sysctl -p
7) add tow line in rc.local
# vi /etc/rc.local
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
/sbin/iptables -I FORWARD -p tcp –syn -i ppp+ -j TCPMSS –set-mss 1356
reboot your ubuntu
4. use windows VPN client to connect your VPN.

