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--
In this issue, the editor will bring you about how to configure rhel4 Linux. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.
Installation environment: RHEL4 update 1
First, download the software required by the xxx server
Dkms-2.05-1.noarch.rpm
RPM installation packages supported by dynamic kernel modules
Kernel_ppp_mppe-0.0.5-2dkms.noarch.rpm
RPM installation package for kernel patches of MPPE encryption protocol
Ppp-2.4.3-5.rhel4.i386.rpm
Upgrade built-in PPP to version 2.4.3 to support MPPE encryption protocol
Pptpd-1.3.0-0.i386.rpm
RPM installation package for pptp point-to-point tunneling protocol
Download address:
Http://prdownloads.sourceforge.net/poptop/
Rpm-ivh dkms-~
Rpm-ivh kernel_ppp_~
Rpm-Uvh ppp-2.~
Rpm-ivh pptpd-1.3~
Modify the / etc/pptpd.conf and / etc/ppp/chap-secrets files to configure the running parameters of × × server
Master profile:
Vi / etc/pptpd.conf
Add the following configuration statement:
Localip 192.168.1.115
Remoteip 192.168.16.0-192.168.16.254192.168.1.254
The IP address used by the local × × server of # localip for the connection of the × × × client.
The address field assigned by # remoteip to the × × client. You can use "-" to indicate a segment, or "," to separate discontiguous addresses.
Configure the account file:
Vi / etc/ppp/chap-secrets
This file stores the account name, password, and assigned IP address used by the × × client when dialing in. The format is:
The IP address assigned by the account name service password to the account
"test" pptpd "test" * "
"test2" pptpd "test2"192.168.1.254"
Turn on the routing function of the Linux kernel
In order to interconnect the × × client with the internal network, you should also turn on the routing function of the Linux kernel, otherwise the × × client can only access the internal network card of the × × server, so you need to turn on the routing function of the Linux kernel.
Echo "1" > / proc/sys/net/ipv4/ip_forward
Start and stop × × services:
Start: / etc/init.d/pptpd start
Stop: / etc/init.d/pptpd stop
Restart: / etc/init.d/pptpd restart
# pptpd restart-kill: when stopping the service, disconnect all existing connections, and then use the command / etc/init.d/pptpd start to start the service.
Automatically start × × service
Ntsysv
Check pptpd
Firewall Settings:
Description: the pptp service uses port 1723 of the TCP protocol and IP protocol numbered 47 (GRE regular routing encapsulation). If the firewall function is enabled on the Linux server, you need to turn off the firewall function or set to allow port 1723 of TCP protocol and IP protocol of number 47 to pass. For example, you can use the following command to open port 1723 of TCP protocol and IP protocol of 47.
Iptables-I INPUT-p tcp-- dport 1723-j ACCEPT
Iptables-I INPUT-P gre-j ACCEPT
This is how to configure rhel4 Linux shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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.