In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to install Centos6 pptp, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
1. First, install the source of pptp, taking Centos 6 as an example:
The code is as follows:
Yum update
Yum install ppp iptables
Rpm-Uvh http://poptop.sourceforge.net/yum/stable/rhel6/pptp-release-current.noarch.rpm
Yum install pptpd
Package pptpd-1.3.4-2.el6.x86_64 already installed and latest version will be displayed
2, / etc/pptpd.conf the content is like this, refer to here to modify the file, do not overwrite, because the original file is to teach you how to configure the tutorial ah, look at some tutorials on the Internet is rm and then touch, and then write the configuration provided on the tutorial, this is completely unnecessary, but also a lack of a place to learn.
The code is as follows:
Option / etc/ppp/options.pptpd
Localip 192.168.10.2
Remoteip 192.168.10.234-238192.168.10.245
3. Configuration of / etc/ppp/options.pptpd
The code is as follows:
Name pptpd
Refuse-pap
Refuse-chap
Refuse-mschap
Require-mschap-v2
Require-mppe-128
Ms-dns 8.8.8.8
Ms-dns 8.8.4.4
Proxyarp
Novj
Novjccomp
Nologfd
If I remember correctly, you only need to change two dns servers in this configuration file, which is Google's DNS server.
4. Close to success, now add an account to pptpd, vim open / etc/ppp/chap-secrets, and add
Test pptpd test12345 *
It means that the user name is test, the pptpd service is used, the password is test12345, and the IP address is not limited to *
5. Now that you have a user name and password, is it possible to connect? The answer is yes, if you confirm that your firewall has opened the pptp port, you can connect to the pptp server, remember to restart service pptpd restart before connecting to let the configuration take effect.
However, although we can connect at this time, we cannot surf the Internet. This is because we have not set up forwarding, and now we can only go to the intranet (used to access the company's intranet. It should be OK here, right? )
However, for well-known reasons, we do not build this thing to access the intranet, so let's continue to set it up.
6. Editor / etc/sysconfig/iptables, iptables-related documents seen on the Internet are not recommended to set iptables in this way.
The code is as follows:
* nat
: P REROUTING ACCEPT [6:312]
: INPUT ACCEPT [0:0]
: OUTPUT ACCEPT [0:0]
: P OSTROUTING ACCEPT [0:0]
-A POSTROUTING-s 192.168.10 MASQUERADE 24-o eth0-j MASQUERADE
COMMIT
In the filter section, add the following
-An INPUT-p tcp-- dport 1723-j ACCEPT
-An INPUT-p tcp-- dport 47-j ACCEPT
-An INPUT-p gre-j ACCEPT
7. Without direct editing
Iptables-A POSTROUTING-s 192.168.10.00 eth0 24-o eth0-j MASQUERADE
8. Enable the forwarding function of IP address
Echo 1 > / proc/sys/net/ipv4/ip_forward
The above is all the contents of the article "how to install pptp in Centos6". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.