PPTPVPN server configuration in RHEL5.7

Source: Internet
Author: User
PPTP (Point-to-Point Tunneling Protocol) is a new technology used to allow remote users to dial up to connect to local ISPs and securely and remotely access company resources over the Internet. It can encapsulate PPP (Point-to-Point Protocol) frames into IP data packets so that they can be transmitted over the IP-based Internet. PPTP uses TCP (Transport Control Protocol) connection creation, maintenance, and termination tunnels, and GREs (Universal Routing Encapsulation) to encapsulate PPP frames into tunnel data. The payload of the encapsulated PPP frame can be encrypted or compressed, or both encrypted and compressed. Our common PPT

PPTP (Point-to-Point Tunneling Protocol) is a new technology used to allow remote users to dial up to connect to local ISPs and securely and remotely access company resources over the Internet. It can encapsulate PPP (Point-to-Point Protocol) frames into IP data packets so that they can be transmitted over the IP-based Internet. PPTP uses TCP (Transport Control Protocol) connection creation, maintenance, and termination tunnels, and GREs (Universal Routing Encapsulation) to encapsulate PPP frames into tunnel data. The payload of the encapsulated PPP frame can be encrypted or compressed, or both encrypted and compressed. Our common PPTP is configured on the vro, but the PPTP server function can also be implemented in linux. Let's take a look at the pptp vpn configuration process in linux.

Install the following software package before configuring PPTP. PPTP is not provided by default (see the attachment for the software package ).

Free onHttp://linux.linuxidc.com/

Both the user name and password areWww.linuxidc.com

The specific download directory is in/Pub/2011/12/23/RHEL5.7 pptp vpn Server Configuration/

Ppp-2.4.4-2.e15.rpm
Pptpd-1.3.4-1.rhel5.1.i386.rpm
Check System compatibility before installation. Because the RHEL 5.7 kernel has integrated MPPE and PPP versions, you can skip the installation and configuration of MPPE and PPP to directly install PPTP.
1) Check the kernel MPPE patch
Run the following command to check whether the kernel supports the MPPE patch:
# Modprobe ppp-compress-18 & echo 'OK !!! '
If "OK!" is displayed !!!" Is supported.
2) Check whether PPP supports MPPE
# Strings '/usr/sbin/pppd' | grep-I mppe | wc-l
If the result is 0, It is not supported, and 30 or a larger number is supported.
3) install pptpd and ppp
# Rpm-ivh ppp-2.4.4-2.e15.rpm
# Rpm-ivh pptpd-1.3.4-1.rhel5.1.i386.rpm
Configure the pptp vpn Server, as shown in figure
650) this. width = 650; "border = 0>
Edit the/etc/pptpd. conf file and configure the following common options:
Option/etc/ppp/options.ppt pd ---- pptp encryption option file path
Stimeout 120 ---- start PPTP to control the connection timeout time, in seconds;
Debug ---- log all debug information to the system log/var/log/messages;
Localip-the IP address allocated by the server VPN Virtual Interface. It can be set to the IP address of the same CIDR block as the Intranet address of the VPN Server or the IP address of another CIDR block;
Remoteip-the IP address segment allocated after the client VPN connection is successful. It can also be set to the IP address segment of the same network segment as the Intranet address of the VPN Server, or the IP address segment of another network segment;
Note: Disable the logwmpt function. Otherwise, the VPN dialing will fail due to a conflict with the ppp protocol! There is no problem in RHEL4, but it must be disabled in RHEL5!
650) this. width = 650; "border = 0>
Set the address pool to 192.168.100.10 -- 192.168.100.20, localip to the local IP address, and remoteip to the address pool. We do not recommend setting the address pool to the same network segment.
650) this. width = 650; "border = 0>
Save the settings and enter/etc/ppp/options.ppt pd to view the encryption and authentication types.
650) this. width = 650; "border = 0>
By default, pap, chap, and mschap authentication is rejected, while mschap-v2 authentication is adopted, and 128-bit mppe encryption is adopted.
Finally, view the pptpd password file. The so-called password is the VPN account, which is stored in the/etc/ppp/chap-secrets file.
650) this. width = 650; "border = 0>
Hujw // user account, which must be enclosed in double quotation marks
* // Automatically identifies the Host Name of the current server, or you can manually configure it
123456 // user password, which must be enclosed in double quotation marks
* // Indicates that an available IP address is automatically allocated. You can specify an IP address as needed.
In addition to directly editing the configuration file, you can also use the vpnuser command to configure the file:
# Vpnuser add hujw 123456 // add a hujw user
# Vpnuser del hujw // delete a hujw user.

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.