How to Create a Linux-based VPN Server in 30 minutes

Source: Internet
Author: User
The following section describes how to create a Linux-based VPN Server-Linux Enterprise Application-Linux server application in 30 minutes. VPN (Virtual Private Network) is an extension of a Private Network. It can simulate a point-to-point Private connection through a shared Internet or public Network connection, send data between a local computer and a remote computer.

It has good confidentiality and is not subject to authorization, so that both parties can establish a free and secure point-to-point connection. The following describes how to quickly build a VPN Server.

Install software

1. Install PPP

Install PPP (Point-to-Point Protocol, Point-to-Point Protocol) 2.4.2 or later versions, can you go to the http://sourceforge.net/project/showfiles.php? Group_id = 44827 download the ppp-2.4.3-0.cvs_20040527.1.i386.rpm package.

The installation command is as follows:


# Rpm-Uvh ppp-2.4.3-0.cvs_20040527.1.i386.rpm




2. Install kernel MPPE patch

Install the kernel MPPE (Microsoft Point to Point Encryption, Microsoft Point-to-Point Encryption) patch and select the appropriate version based on the kernel. The Linux kernel I use is 2.4.20-31.9, you can go to http://pptpclient.sourceforge.ne... 4.20-31.9.i686.rpm to download the corresponding kernel-mppe-2.4.20-31.9.i686.rpm package. The installation command is as follows:


# Rpm-ivh kernel-mppe-2.4.20-31.9.i686.rpm




Run the following command to check whether the kernel MPPE patch is successfully installed:


# Modprobe ppp-compress-18




3. Check whether PPP supports MPPE.

Run the following command to check whether PPP supports MPPE:


# Strings '/usr/sbin/pppd' | grep-I mppe | wc -- lines




If the above command output is "0", it means not supported; If the output is "30" or a larger number, it means support.

4. Install PPTPD

To http://sourceforge.net/project/showfiles.php? Group_id = 44827 download the pptpd-1.1.4-b4.i386.rpm package and install it.


# Rpm-ivh pptpd-1.1.4-b4.i386.rpm

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.