VPN (Virtual Provate Network) is a computer network that allows someone into a different local network. This time I tried to install vpn using pptp and with os Centos / RHEL 5.
Installation PPTPD1. Install the Yum Repositories
rpm -Uvh http://pptpclient.sourceforge.net/yum/stable/rhel5/pptp-release-current.noarch.rpm
2. Then proceed with installing ppp & pptpd
yum install ppp
yum --enablerepo=pptp-stable install pptp
3. After installation finnish open /etc/pptpd.conf and change the configuration for localip & remoteip
localip 10.0.0.2
remoteip 10.0.0.200-220
4. After that open the file / etc / ppp / options.pptpd and change sesuia ms-dns dns server / isp you (I filled in with open dns ip)
ms-dns 208.67.222.222
ms-dns 208.67.220.220
5. Then make your VPN use
echo "username pptpd password *">> / etc / ppp / chap-secrets
IP Forwarding & Nat
1. Set IPForward
echo 1 > /proc/sys/net/ipv4/ip_forward
2. Set Nat
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Start PPTPD
service pptpd start