Installing OpenVPN server on CentOS Linux (part3)

Server configurations for Debian and CentOS Linux are almost identical, except for the beginning of the installation process.

Since the package is not included into the CentOS repository, you will need to enable RPMforge (http://rpmrepo.net/RPMforge) to install OpenVPN.

Run the commands:

wget -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
rpm -Uvh rpmforge-release-0.5.1-1.el5.rf.i386.rpm

The repository will be installed, and you will be able to install OpenVPN using the command

yum -y install openvpn

Copy the files (key utilities) into the folder of the openvpn configuration file

cp /usr/share/doc/openvpn-2.0.9/easy-rsa/2.0/* /etc/openvpn/

Go to

/etc/openvpn/

and set access privileges for the following files:

cd /etc/openvpn/
chmod +x clean-all build-ca build-key-server build-dh build-key /etc/openvpn/whichopensslcnf ./build-ca

Create the keys

Copy the openvpn configuration file

cp /usr/share/doc/openvpn-2.0.9/sample-config-files/server.conf /etc/openvpn/

Configuration is similar to that used for Debian; you will need to provide other settings, for example configure NAT.

Configuring  the client OpenVPN on Windows Vista

We recommend using OpenVPN GUI for Windows http://openvpn.se/ as the client software

Download the openvpn-2.0.9-gui-1.0.3-install.exe file from the official website and install it leaving the default parameters.

Once finished, copy the client.ovpn file form

C:\Program Files\OpenVPN\sample-config\ into c:\Program Files\OpenVPN\config\

and paste the certificates’ files from the server

ca.crt
client1.crt
client1.key

In the client’s client.ovpn configuration file change

remote my-server-1 1194

into the line that refers to your server’s address, for example,

remote 82.146.58.167 1194

and specify other certificates’ names

cert client1.crt
key client1.key

If you wish to connect to the Internet through the OpenVPN-server, you will need to add the following lines to modify the routing

route-method exe
route-delay 2

Run OpenVPN as administrator – Start -> Programs -> OpenVPN –> double-click OpenVPN GUI and start it as administrator to apply the cahnges.

Double click OpenVPN GUI and choose Connect

Congratulations! You have successfully installed the client software.

Installing and configuring OpenVPN (part1)
Installing OpenVPN on Debian Linux (part2)

  • Facebook
  • Digg
  • Google Gmail
  • MySpace
  • Yahoo Mail
  • WordPress
  • Reddit
  • Google Reader
  • Yahoo Bookmarks
  • Windows Live Spaces
  • Blogger Post
  • Ask.com MyStuff
  • Mixx
  • StumbleUpon
  • LinkedIn
  • Google Bookmarks
  • AOL Mail
  • Twitter
  • Share/Bookmark
Posted on March 23, 2010