This post writes how to create a vpn server on Debian 5.
1. Install pptpd
# apt-get install -y pptpd
2. Edit pptpd.conf
# vim /etc/pptpd.conf
edit localip and remoteip fields
localip 192.168.92.1
remoteip 192.168.92.15-30
3. Edit /etc/ppp/pptpd-options, set ms-dns as
ms-dns 8.8.8.8
ms-dns 8.8.4.4
4. Set vpn user
# vim /etc/ppp/chap-secrets
add user as following format
user pptpd password *
5. Edit /etc/sysctl.conf and uncomment the line
net.ipv4.ip_forward=1
then make it work
# sysctl -p
6. Setup iptables rule
# iptables -t nat -A POSTROUTING -s 192.168.92.0/24 -o eth0 -j MASQUERADE
7. There is no ppp device in Linode VPS
# mknod /dev/ppp c 108 0
8. Restart pptpd service
# /etc/init.d/pptpd restart
All works on server have finished. Use your client device to connect it.

0 Comments.