References: Workshop
References: http://www.dabu.info/centos6-4-structures-pptp-vpn.htmlhttp://www.ttlsa.com/linux/centos-install-pptp-vpn/
The following is the most important installation method for centos 6.4 64-bit. you must select the pptpd version based on the ppp version, below is the most common ing relationship ppp 2.4.4 ------> pptpd 1.3.4ppp 2.4.5 ------> pptpd 1.4.0wget http://poptop.sourceforge.net/yum/stable/packages/ppp-2.4.5-33.0.rhel6.x86_64.rpmwget http://poptop.sourceforge.net/yum/stable/packages/pptpd-1.4.0-1.el6.x86_64.rpmrpm -Ivh ppp-2.4.5-33.0.rhel6.x86_64.rpmrpm-ivh pptpd-1.4.0-1.el6.x86_64.rpmvi/etc/pptpd. add the localip 192.168.9.1remoteip 192.168.9.11-30vi/etc/ppp/options.ppt pd to the end of the conf file. modify the DNS as follows: ms-dns 8.8.8.8ms-dns 8.8.4.4vi/etc/ppp/chap-secrets, configure the username and password format: userpptpd password * user1 pptpd 123456 * user2 pptpd 123456 * vi/etc/sysctl. conf net. ipv4.ip _ forward = 1 Make the configuration take effect immediately:/sbin/sysctl-p // This step is optional to enable log vi/etc/syslog. conf append a row: daemon. debug/var/log/pptpd. log configuration iptables run the command:/sbin/iptables-t nat-a postrouting-o eth0-s 192.168.9.0/24-j MASQUERADE/etc/init. d/iptables save: the final configuration of the firewall is as follows: # Generated by iptables-save v1.4.7 on Tue Sep 1 05:06:44 2015 * nat: prerouting accept [0: 0]: postrouting accept []: output accept []-a postrouting-s 192.168.9.0/24-o eth0-j masquerade commit * filter: input drop [0: 0]: forward accept [0: 0]: output accept [0: 0]-a input-p icmp-j DROP-A INPUT-p tcp-m tcp -- dport 1723-j ACCEPT // pptd port-a input-p tcp-m tcp -- dport 2211-j ACCEPT // ss5 port-a input-p tcp-m tcp -- dport 22-j ACCEPT // ssh port-a input-m state -- state RELATED, ESTABLISHED-j accept commit # Completed on Tue Sep 1 05:06:44 2015 related documents http://blog.163.com/f_jinyi/blog/static/3118031520101126104227334/http://www.linuxidc.com/Linux/2013-09/89667p2.htmhttp://www.it165.net/os/html/201304/5052.htmlhttp://guojiping.blog.51cto.com/5635432/1317367http://my.oschina.net/lionel45/blog/179164http://my.oschina.net/praise/blog/135260