OpenVPN Install Guides

OpenVPN tutorials ranging from configuration to hacks to compilation will be posted here.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Douglas
Forum Team
Posts: 285
Joined: Wed Aug 27, 2008 2:41 am

OpenVPN Install Guides

Post by Douglas » Wed Aug 27, 2008 2:43 am

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.

User avatar
krzee
Forum Team
Posts: 728
Joined: Fri Aug 29, 2008 5:42 pm

FreeBSD howto

Post by krzee » Fri Aug 29, 2008 5:58 pm

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

Douglas
Forum Team
Posts: 285
Joined: Wed Aug 27, 2008 2:41 am

Post by Douglas » Sat Sep 13, 2008 7:05 pm

There is a Debian installation video as well here.

adi.kwok
OpenVpn Newbie
Posts: 1
Joined: Mon Nov 15, 2010 4:14 pm

Re: OpenVPN Install Guides

Post by adi.kwok » Wed Nov 17, 2010 5:47 pm

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

User avatar
dazo
OpenVPN Inc.
Posts: 155
Joined: Mon Jan 11, 2010 10:14 am
Location: dazo :: #openvpn-devel @ libera.chat

Re: OpenVPN Install Guides

Post by dazo » Thu Nov 18, 2010 3:57 pm

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

dhruvpandit
OpenVPN Power User
Posts: 53
Joined: Tue Apr 19, 2011 11:18 am

Re: OpenVPN Install Guides

Post by dhruvpandit » Tue Apr 19, 2011 11:50 am

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?

User avatar
dazo
OpenVPN Inc.
Posts: 155
Joined: Mon Jan 11, 2010 10:14 am
Location: dazo :: #openvpn-devel @ libera.chat

Re: OpenVPN Install Guides

Post by dazo » Tue Apr 19, 2011 12:44 pm

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.

whoa
OpenVpn Newbie
Posts: 5
Joined: Wed Jun 29, 2011 1:42 am

Re: OpenVPN Install Guides

Post by whoa » Tue Jul 26, 2011 10:18 pm

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?

whoa
OpenVpn Newbie
Posts: 5
Joined: Wed Jun 29, 2011 1:42 am

Re: OpenVPN Install Guides

Post by whoa » Wed Jul 27, 2011 3:40 am

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?

whoa
OpenVpn Newbie
Posts: 5
Joined: Wed Jun 29, 2011 1:42 am

Re: OpenVPN Install Guides

Post by whoa » Wed Jul 27, 2011 6:58 pm

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.

User avatar
dazo
OpenVPN Inc.
Posts: 155
Joined: Mon Jan 11, 2010 10:14 am
Location: dazo :: #openvpn-devel @ libera.chat

Re: OpenVPN Install Guides

Post by dazo » Wed Aug 03, 2011 12:17 pm

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.

manahil
OpenVpn Newbie
Posts: 2
Joined: Tue Oct 18, 2011 9:40 am
Contact:

Re: OpenVPN Install Guides

Post by manahil » Tue Oct 18, 2011 11:36 am

Thanks for a great tutorial, but could you please post the server.ovpn file or else the turorial wont work...

Post Reply