In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Brief description:
PPTP: point-to-point tunneling protocol
(PPTP: Point to Point Tunneling Protocol)
Through this protocol, remote users can access Microsoft Windows NT workstations, Windows 95 and Windows
The 98 operating system and other systems with point-to-point protocols securely access the corporate network and can dial up to connect to the local ISP and securely link to the corporate network through Internet.
First, prepare before installation
First check whether PPP and TUN of your VPS are enabled:
[root@yunwei_cq ~] # cat / dev/pppcat: / dev/ppp: No such device or address [root @ yunwei_cq ~] # [root@yunwei_cq ~] # [root@yunwei_cq ~] # cat / dev/net/tuncat: / dev/net/tun: File descriptor in bad state
The display results are as follows:
Cat: / dev/ppp: No such device or addresscat: / dev/net/tun: File descriptor in bad state
It shows that the above two articles cannot be passed as long as one of them is not passed. If it is not enabled, you can give the VPS provider Submit
A Ticket request is activated:
Hello
Could you enabled TUN-TAP for me? I want run pptpon my VPS.
Thank you.
After confirming that PPP and TUN are enabled, start installing ppp and iptables
Second, install ppp and iptables
1. Check whether it is installed before installation (iptables is installed on this machine)
[root@yunwei_cq ~] # rpm-qa | grep ppp [root @ yunwei_cq ~] # rpm-qa | grep iptablesiptables-1.4.7-11.el6.x86_64iptables-ipv6-1.4.7-11.el6.x86_64
two。 Install the ppp protocol
[root@yunwei_cq yum.repos.d] # yum install-y ppp Loaded plugins: fastestmirror, securityRepository base is listed more than once in the configuration Loading mirror speeds from cached hostfileSetting up Install ProcessResolving Dependencies-- > Running transaction check--- > Package ppp.x86_64 0pur2.4.5-10.el6 will be installed-- > Finished Dependency Resolution. Third, install pptpd program
1. If prompted that there is no pptpd installation package, you need to download and install it yourself.
[root@yunwei_cq yum.repos.d] # yum install-y pptpd Loaded plugins: fastestmirror, securityRepository base is listed more than once in the configuration Loading mirror speeds from cached hostfile Setting up Install ProcessNo package pptpd available.
With rpm installation package installation address: https://down.51cto.com/data/2368471
two。 Install the pptpd service
[root@yunwei_cq packages] # rpm-ivh pptpd-1.3.4-2.el6.x86_64.rpmwarning: pptpd-1.3.4-2.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature Key ID 862acc42:NOKEYPreparing...1:pptpd### [100%] # [100%] IV. Modify configuration file
1.vim / etc/pptpd.conf
Option / etc/ppp/options.pptpd # # configuration file path logwtmp # # log localip xxxxxxxxx # # fill in the remote server's public network address remoteip 192.168.101.1-50 # # the IP address range assigned to a connected client.
2 、 vim / etc/ppp/options.pptpd
Name pptpd # # set name refuse-paprefuse-chaprefuse-mschaprequire-mschap-v2require-mppe-128proxyarplocknobsdcompnovjnovjccompnologfdms-dns 114.114.114.114 # # modify DNS address ms-dns 8.8.8.8 # # alternate address
3 、 vim / etc/ppp/chap-secrets
# Secrets for authentication using CHAP# client server secret IP addresses # # client client (username) server (server hostname) secret encryption password (password) ip # # addresses (remote host sets a fixed ip address) "hongkun" * "test" *
The four items in the second line of code above correspond to the four items in the first line. " Test@gd.cn "is the user name of the connection on the Client side;" server "corresponds to the name of the VPS server, which must be the same as that indicated in the / etc/ppp/options.pptpd file, or set to" to indicate the automatic identification of the server; "secret" corresponds to the login password; "IP addresses" corresponds to the client IP address that can be dialed in. If you do not need to make special restrictions, you can set it to the "" number.
4. Vim / etc/sysctl.conf # # enable IP forwarding
# Kernel sysctl configuration file for Red Hat Linux# For binary values, 0 is disabled, 1 is enabled. See sysctl (8) and# sysctl.conf (5) for more details.# Controls IP packet forwardingnet.ipv4.ip_forward = 1 # # change this value to 1 other immobile # Controls source route verification net.ipv4.conf.default.rp_filter = "Do not accept source routing net.ipv4.conf.default.accept_source_route =" Controls the System Request debugging functionality of the kernel kernel.sysrq = 0
5. Sysctl-p (forced refresh)
Net.ipv4.ip_forward = 1net.ipv4.conf.default.rp_filter = 0net.ipv4.conf.default.accept_source_route = 0kernel.sysrq = 0kernel.core_uses_pid = 1net.ipv4.tcp_syncookies = 1net.bridge.bridge-nf-call-ip6tables = 0net.bridge.bridge-nf-call-iptables = 0net.bridge.bridge-nf-call-arptables = 0kernel.msgmnb = 65536kernel.msgmax = 65536kernel.shmmax = 68719476736kernel.shmall = 4294967296, iptables
Port 1723 needs to be opened.
Iptables-An INPUT-p tcp-m tcp-- dport 1723-j ACCEPT (open port 1723) / etc/init.d/iptables save # # Save firewall configuration / etc/init.d/iptables resart # # restart firewall chkconfig iptables-- level 345 on (boot automatic startup) chkconfig pptpd-level 345 on/etc/init.d/pptpd start (boot pptpd) Starting pptpd: [OK] VI. Test
How to set * PN in Win10 system:
1. To set up PN on Win10, click the start button in the lower left corner, and then select the Settings option. Then click Network and Internet, and then click PN. The next step is to click add * PN connection, and then it's time to add all the necessary information.
2. First click the PN provider drop-down list, and then select the only available option-Windows (built-in). In the connection name field, type the name of the option that you want to recognize when connecting to the PN.
3. It is time to add a "server name or address", select the "automatic" option under "* PN type", and then select one of the "login information type" options. In most cases, this will be the default-"username and password".
The next step is to add your input information to the username and password fields, and then click the Save button to complete the process.
Note: if your computer cannot connect to the Internet after connecting to * PN, click the following settings:
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.