CENTOS6 Installation Configuration pptpd Experience

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.