Configure PPTP VPN Server
- Install ppp
yum install ppp
- Download pptpd rpm
wget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.3.4-2.el6.i686.rpm
- Set the local and remote ip in /etc/pptpd.conf
vi /etc/pptpd.conf
localip <local ip address of server>
remoteip < range of ip addresses to be assigned to users, eg. 192.168.100.1 - 254>
- Set the authentication mode, encryption and DNS settings to /etc/ppp/options.pptpd
vi /etc/ppp/options.pptpd
require-mschap-v2
require-mppe-128
ms-dns
- Create user accounts in /etc/ppp/chap-secrets
vi /etc/ppp/chap-secrets
- Enable ip forwarding
vi /etc/syscctl.conf
net.ipv4.ip_forward = 1
- Apply changes
sysctl -p
- Configure Nat in iptables
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
- Restart iptables
service iptables save
service iptables restart
10. Start pptpd and set to auto start on reboots
chkconfig pptpd on
service pttpd start