1. The software you need
PPPD PPP Dial-up server
PPTPD adds PPTPD support based on PPPD dialing
2. Installing PPP, PPTPD
Join the Yum Source:
RPM-UVH http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm
Yum Install PPP pptpd-y
3. Configure your PPPD and pptpd
There are 3 places in the/etc/pptpd.conf that need to be configured
Option/etc/ppp/options.pptpd
# logwtmp If the log appears similar to the following issues must be commented out logwtmp!!!!
#Jun 15:39:55 Center pppd[1374]:/usr/lib/pptpd/pptpd-logwtmp.so:wrong ELF class:elfclass32
#Jun 15:39:55 cent Er pppd[1374]: couldn ' t load plugin/usr/lib/pptpd/pptpd-logwtmp.so
Localip 192.168.9.1
Remoteip 192.168.9.11-30
Configure/ETC/PPP/OPTIONS.PPTPD
ms-dns 8.8.8.8 //windowns客户端需要
ms-dns 8.8.4.4
Edit/etc/ppp/chap-secrets
Add a test user
# Secrets for authentication using CHAP
# Client Server Secret IP addresses
Test PPTPD Test *
The first test is the user, the second test is the password, * indicates any IP
Configuration file/etc/sysctl.conf
# vim /etc/sysctl.conf
Modify the following to turn on IP forwarding:
net.ipv4.ip_forward = 1
Save, exit after execution:
sysctl -p
7. Open the firewall port
Open the 1723 ports and 47 ports of the Linux server and open the GRE protocol.
Iptables-a input-p TCP--dport 1723-j ACCEPT
Iptables-a input-p TCP--dport 47-j ACCEPT
Iptables-a input-p gre-j ACCEPT
Iptables-a postrouting-t nat-s 192.168.9.0/24-o eth0-j Masquerade
Iptables-a input-p UDP--dport 53-j ACCEPT
Service Iptables Save
8. Test PPTPD
CENTOS6 Installation Configuration pptpd Experience