Centos 5.5 Installation OpenVPN full version: Server-side configuration

Source: Internet
Author: User
Tags openssl openssl library vars centos

VPN is a virtual private network, is provided to the enterprise or between the individual and the company security data transmission between the tunnel, OpenVPN is the Linux open source VPN leader, provides the good performance and the friendly user GUI, uses the OpenSSL library encryption and the authentication function. Supports UDP and TCP protocols and provides two kinds of virtual network interfaces: Tun/tap mode. The following is the installation of OpenVPN detailed process above the Centos5.5, I hope to help friends, using the RPM package, (Tar compile package time, configuration method consistent).

1. Download the software package and download the 2 RPM packages required for installation at http://rpm.pbone.net.

lzo-2.02-3.el5.kb.i386.rpm (compression tool)

OPENVPN-2.1-0.20.RC4.EL5.KB.I386.RPM (Installation package)

2. Installation.

[Root@nagios ~] #rpm-IVH lzo-2.02-3.el5.kb.i386.rpm

Preparing ... ########################################### [100%]

1:lzo ########################################### [100%]

[Root@nagios ~] #rpm-IVH openvpn-2.1-0.20.rc4.el5.kb.i386.rpm

Preparing ... ########################################### [100%]

1:openvpn ########################################### [100%]

3.1 Copy OpenVPN configuration file into the/etc/openvpn/directory.

[Root@nagios ~] #cp-R/usr/share/openvpn/easy-rsa/2.0//etc/openvpn/

[Root@nagios ~] #cp/usr/share/doc/openvpn-2.1/sample-config-files/server.conf/etc/openvpn/

3.2 Edit variable definition file in/etc/openvpn/2.0 directory.

Vim VARs

Modify the following

Export key_country= "CN"/specify which country to belong to

Export key_province= "SHS"/designate which province it belongs to

Export key_city= "SH"/designate which city it belongs to

Export key_org= "vpn-test"/designation belongs to the company

Export key_email= ""/Designated mailing address

Use source to make vars effective

[Root@nagios 2.0] #source./vars

Note:if you run./clean-all, I'll be doing a rm-rf On/etc/openvpn/2.0/keys

See just the configuration, whether more of the following lines, if there is OK.

[Root@nagios 2.0]# env |grep KEY

key_expire=3650

key_size=1024

Key_dir=/etc/openvpn/2.0/keys

Key_city=sh

Key_province=shs

Key_org=vpn-test

Execute./clean-all clears the values associated with all certificates OpenVPN, and finds that the keys file is generated in this directory

[Root@nagios 2.0]#./clean-all

[Root@nagios 2.0]# ls

Build-ca build-key-server list-crl revoke-full build-dh build-req Sign-req

Build-inter build-req-pass openssl-0.9.6.cnf VARs build-key clean-all Whichopensslcnf

Build-key-pass inherit-inter pkitool build-key-pkcs12 keys README

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.