Page 1 of 1

OpenVPN Install Guides

Posted: Wed Aug 27, 2008 2:43 am
by Douglas
You've decided you want to install OpenVPN but don't know how? I'll show you how. Just keep reading.

On CentOS 5 via RPM

You need to install LZO (http://www.oberhumer.com/opensource/lzo/) compression library on your server before you can install OpenVPN.
Once these are installed, you are ready to install OpenVPN. The following steps will download and install OpenVPN:
cd /tmp
wget http://dag.wieers.com/rpm/packages/open ... f.i386.rpm
rpm -Uvh openvpn-2.0.9-1.el5.rf.i386.rpm
Once this command runs, OpenVPN has successfully been installed on your system.

FreeBSD howto

Posted: Fri Aug 29, 2008 5:58 pm
by krzee
ecrist made a nice howto for setting up openvpn on freebsd...
here is the link
https://www.secure-computing.net/wiki/i ... VPN_Server

-krzee

Posted: Sat Sep 13, 2008 7:05 pm
by Douglas
There is a Debian installation video as well here.

Re: OpenVPN Install Guides

Posted: Wed Nov 17, 2010 5:47 pm
by adi.kwok
i tried that centos 5,

but i got this message:

Unable to obtain Session ID from 67.23.249.55:443: XML-RPC: mismatched tag: line 25, column 2

how to correct it?

thx

Re: OpenVPN Install Guides

Posted: Thu Nov 18, 2010 3:57 pm
by dazo
The CentOS recipe is pretty much outdated.

I suggest first to install the Fedora EPEL repository for RHEL5:

Code: Select all

[root@host:~] rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Then it's just a matter of a yum install:

Code: Select all

[root@host:~] yum install openvpn
And that's it. Should give you a much newer and more decent version of OpenVPN as well.

For more info about the Fedora EPEL repository for RHEL (and CentOS), go here:
http://fedoraproject.org/wiki/EPEL
http://fedoraproject.org/wiki/EPEL/FAQ

Re: OpenVPN Install Guides

Posted: Tue Apr 19, 2011 11:50 am
by dhruvpandit
hi there,
sorry for a noob question,
but i've installed openVPN with yum command on my centos 64 bit (plesk)

i am accessing my server with remote server . so i checked there , but there was not any icon in my server.

can anyone give me link of tutorial of installing it with GUI?

Re: OpenVPN Install Guides

Posted: Tue Apr 19, 2011 12:44 pm
by dazo
dhruvpandit wrote:hi there,

i am accessing my server with remote server . so i checked there , but there was not any icon in my server.

can anyone give me link of tutorial of installing it with GUI?
Is your CentOS box going to be a client or server? If a client and if using NetworkManager, there is a NetworkManager OpenVPN plug-in, which gives you a GUI. But this is only if you're setting up your box as an OpenVPN client.

If you want to setup you box as an OpenVPN server (which openvpn clients connects to), there are no GUI for this. On CentOS, you write your config file and places it under /etc/openvpn/ with a *.conf extension. Then you do 'service openvpn start' and then read the log files to debug you config.

There are no shortcuts, and to be frankly, the GUIs is just doing the same which the config file does. And the config files are usually quite easy. If you want a kick-start to something, go buy the OpenVPN 2 Cookbook by Jan Just Keijser https://www.packtpub.com/openvpn-2-cookbook/book ... or read the different how-to's and guides on the net, there are plenty of them - but many of them might not be as good as the book though.

Re: OpenVPN Install Guides

Posted: Tue Jul 26, 2011 10:18 pm
by whoa
dazo wrote:The CentOS recipe is pretty much outdated.

I suggest first to install the Fedora EPEL repository for RHEL5:

Code: Select all

[root@host:~] rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
Then it's just a matter of a yum install:

Code: Select all

[root@host:~] yum install openvpn
And that's it. Should give you a much newer and more decent version of OpenVPN as well.

For more info about the Fedora EPEL repository for RHEL (and CentOS), go here:
http://fedoraproject.org/wiki/EPEL
http://fedoraproject.org/wiki/EPEL/FAQ
Dazo - not to be picky but this installs openvpn-2.1.4-1.el5.x86_64 and the current release is openvpn-2.2.1. After doing

Code: Select all

yum install openvpn
it installed lzo but when I decompress openvpn-2.2.1 and do a ./configure it errors out complaining about lzo not being found...

So...how would one upgrade to openvpn-2.2.1?

Re: OpenVPN Install Guides

Posted: Wed Jul 27, 2011 3:40 am
by whoa
my bad did another ./configure it doesnt complain about lzo not being found. It does complain about this:

Code: Select all

configure: checking for LZO Library and Header files...
checking lzo/lzo1x.h usability... no
checking lzo/lzo1x.h presence... no
checking for lzo/lzo1x.h... no
checking lzo1x.h usability... no
checking lzo1x.h presence... no
checking for lzo1x.h... no
LZO headers were not found
LZO library available from http://www.oberhumer.com/opensource/lzo/
configure: error: Or try ./configure --disable-lzo
[root@localhost openvpn-2.2.1]# 
Okay...so how do I fix the LZO headers not being found issue?

Re: OpenVPN Install Guides

Posted: Wed Jul 27, 2011 6:58 pm
by whoa
So I researched this further... I went to LZO's web site downloaded LZO (again) did a ./configure, make, make install and the headers were fixed, but then it complained about openssl headers not being present. So I did a yum search for openssl-devel and installed the latest version, which then fixed that issue. Finally did yet another ./configure in the openvpn directory and low and behold it went to completion. Did a make, make install and didnt see any errors so at this point it looks like the issue is resolved and the latest openvpn version (2.2.1) is installed. This is being installed on a VM instance (virtual box) of CentOS 5.

Re: OpenVPN Install Guides

Posted: Wed Aug 03, 2011 12:17 pm
by dazo

Code: Select all

yum install openssl-devel lzo-devel pkcs11-helper-devel
Then you can try to build openvpn again. That gives you the needed development files (header/include files among others) which is needed when compiling programs which uses these libraries.

Re: OpenVPN Install Guides

Posted: Tue Oct 18, 2011 11:36 am
by manahil
Thanks for a great tutorial, but could you please post the server.ovpn file or else the turorial wont work...