Build a VPN Server Based on redhat9 (kernelversion2.4.20-8)

Source: Internet
Author: User
Build a VPN Server Based on redhat9 (kernelversion2.4.20-8) -- Linux Enterprise Application-Linux server application information. The following is a detailed description. I used the VPN configuration based on win2000/win2003. It took me a long time to configure the Linux-based VPN Server !!!!
A VPN (Virtual Private Network) is an extension of a Private Network. It can be connected through a shared Internet or a public Network.

Simulates a point-to-point dedicated connection to send data between a local computer and a remote computer.

Allows both parties to establish a free and secure point-to-point connection. The following describes how to quickly build a VPN Server.

Software to be downloaded:
Pptp-1.6.0-1.i386
Ppp-2.4.3-4.rhl9.i386
Pptpd-1.3.0-0.i386
Kernel-mppe-2.4.20-8.i686

Check whether the corresponding software package has been installed in your system. If not, use the upgrade.
Run the following commands:
Installation: rpm-ivh xxx. rpm
Upgrade: rpm-Uvh xxx. rpm
The installation is complete.

1. If version below 2.6.15-rc1 needs to add MPPE to kernel
# Rpm-kernel-mppe-2.4.20-8.i686

Run the following command to check whether the kernel MPPE patch is successfully installed:
# Modprobe ppp-compress-18 & echo OK
If OK is displayed
You do not need to add MPPE to the kernel

2. Install and update ppp
# Rpm-Uvh ppp-2.4.3-4.rhl9.i386.rpm

3. Install pptpd
# Rpm-ivh pptp-1.6.0-1.i386

4. edit/etc/pptp. conf
You only need to enter the last two rows:
Localip 192.168.100.1 // define the IP address on the server (that is, the ip address of ppp0 after the connection)
Remoteip 192.168.1.1-30 // define the Client IP address.
Save.
5. edit/etc/ppp/chap-secrets
You only need to add:
"User" pptpd "password" * // modify user and password to your username and password.
Or:
"User" pptpd "password" 192.168.1.1 // after replacing * with an ip address, it is the ip address after the client is connected.
Save.
6. edit/etc/ppp/options.ppt pd
You only need to add:
Ms-dns 202.101.172.35 // Replace the ip address with your dns ip address.
Save.
7. Start the service.
/Etc/rc. d/init. d/pptpd start or service pptpd start

8. Use the win system to create a new vpn connection. Enter the Server ip address, user name, and password.


I just tested it in the LAN and can use it normally. If you have any questions, please feel free to advise me!
For more information, see www.poptop.org.

[ This post was last edited by ppzlyg]
Related Article

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.