Set up L2TPIPSecVPN server (X509) in Linux)

Source: Internet
Author: User
Article Title: Set up L2TPIPSecVPN server (X509) in Linux ). Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

1 Description
Required software and
CentOS 1, 5.2----------------------------------------------------- The most stable linux Server
Ppp-2.4.3.tar.gz--------------------------------------------- PPP main program
Openssl-0.9.8i.tar.gz----------------------------------------- Main program for certificate Production
Xl2tpd-1.2.3.tar.gz-------------------------------------------- FreeRadius Server master program
Openswan-2.6.19.tar.gz------------------------------------- IPSec Main Program

1.2 implementation process and features

Shows the topology of our test network:

500) this. width = 500; "border = 0 twffan =" done ">

We used the vmvm test. The network settings in the VM are as follows:

On the "Host Virtual Network Mapping" tab in the Virtual Network Editor provided by VMware, set VMNet2 to Not bridged, click the ">" button on the right-subnet, enter the IP address 172.16.1.0, and click OK.

The VPNGateway virtual machine needs to add another nic. in Linux, set each Nic according to the following table, and select the network corresponding to the NIC in the VM settings. The network card 0 of VPNGateway belongs to VMNet0, and the Network Card 1 belongs to vmnet2. The default Nic of network adapter 1 is 192.168.2.1.

In addition, the XP host is automatically located in VMNet0 and does not need to be set.


Machine name

Nic0 (eth0)

Nic1 (eth1)

Default Gateway

Network

Role description

Windows

192.168.1.55

 

192.168.1.20.

VMNet0

XP Client

VPNGateway

192.168.1.20.

172.16.1.100

192.168.1.20.

VMNet0, VMNet2

VPNGateway

Juniper

172.16.1.101

 

172.16.1.100

VMNet2

Private NetworkHTTPServer


The CIDR Block 192.168.1.0/24 simulates the internet, and windows xp simulates the VPN Client for Internet dialing.

The network segment 172.16.1.0/24 simulates the Intranet. Juniper is a machine in the intranet and serves as an internal HTTP server.

[1] [2] [3] Next page

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.