OpenVPN is a full-featured SSL VPN which implements OSI layer 2 or 3 secure network extension using the industry standard SSL/TLS protocol, supports flexible client authentication methods based on certificates, smart cards, and/or username/password credentials, and allows user or group-specific access control policies using firewall rules applied to the VPN virtual interface. OpenVPN is not a web application proxy and does not operate through a web browser.

OpenVPN supports different platforms including Linux, Free BSD, Net BSD, Open BSD, Mac OS X Darwin, Windows, Solaris.

How to install OpenVPN on Redhat/Fedora/Suse/CentOS

Open your terminal in root user mode and resolve the dependencies. The dependencies are openssl, lzo and pam. So install the dependencies first and then install OpenVPN.

# yum install openssl lzo pam

Download the openvpn to the ~/Downloads directory

#cd ~/Downloads

# rpm -ivh openvpn.xxx.rpm

If you want to upgrade an existing installation use

# rpm -Uvh openvpn.xxx.rpm

Note : Replace xxx with appropriate version you have download.

How to install OpenVPN on Ubuntu/Debian and other debian based distributions

Open the terminal and login as root user.

Download the OpenVPN to ~/Downloads directory

#cd ~/Downloads

# dpkg -i openvpn.xxx.deb

Note : Replace xxx with appropriate version you have download

Or try to use apt-get

# apt-get install openvpn

How to install OpenVPN from source code

Install the library files for the source code compilation.

In case of debian based distribution

#apt-get install gcc build-essential openssl lzo pam

In case of rpm based distribution

#yum install  gcc build-essential openssl lzo pam

Download the OpenVPN source code and extract it.

# tar -xzvf openvpn-xxx.tar.gz

# cd openvpn-xxx

#./configure

Options for ./configure ( optional )

 --enable-pthread          Compile pthread support for
                            improved latency during SSL/TLS key
                            negotiations (Linux or Solaris only)

  --disable-lzo             Do not compile LZO compression support
  --disable-crypto          Do not compile OpenSSL crypto support
  --disable-ssl             Do not compile OpenSSL SSL support for
                            TLS-based key exchange

  --with-ssl-headers=DIR    Crypto/SSL Include files location
  --with-ssl-lib=DIR        Crypto/SSL Library location
  --with-lzo-headers=DIR    LZO Include files location
  --with-lzo-lib=DIR        LZO Library location

  --with-ifconfig-path=PATH   Path to ifconfig tool (only need to
                              specify if in a non-standard location)

  --with-leak-check=TYPE    Build with memory leak checking
                            TYPE = dmalloc or ssl

  --enable-strict           Enable strict compiler warnings

  --enable-strict-options   Enable strict options check between peers
#make

#make install

How to run OpenVPN

In terminal openvpn vpnfile.ovpn

Note: vpnfile.ovpn is your configuration file

OpenVPN has now been started and you can start to use it.

Related articles


Subscribe Our Free Newsletter

Delivered by FeedBurner. We Respect Your Privacy

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>