Installing VPN client on RH-based Linux

Follow the manual to install VPN-client which supports DeepWebVPN ECC to a RedHat-based Linux. Warning!!! Commands which start from '#' should be executed by root-user. '$' sign means that command should be executed by common user

Resolving dependencies

# yum install gcc* autoconf* libtool* snappy* openssl-dev* lzo* libpam* pam-devel* -y

OpenSSL installation

Determine current OpenSSL version.
# openssl version
OpenSSL 1.0.1k-fips 8 Jan 2015
Download latest OpenSSL source from official site. Download, unpack the tarball and visit tarball's directory.
$ wget https://www.openssl.org/source/openssl-1.0.1p.tar.gz
$ tar -xvzf openssl-1.0.1p.tar.gz
$ cd openssl-1.0.1p
Do the following in the tarball's directory.
$ ./config --prefix=/usr --openssldir=/usr/ssl
$ make
$ make test
# make install
$ ./config shared --prefix=/usr --openssldir=/usr/ssl
$ make clean
$ make
# make install
Version of OpenSSL should change.
# openssl version
OpenSSL 1.0.1p 9 Jul 2015

OpenVPN-client installation

If client was installed earlier determine the current client's version
$ openvpn --version
OpenVPN 2.3.8 x86_64-redhat-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Aug  4 2015
library versions: OpenSSL 1.0.1k-fips 8 Jan 2015, LZO 2.08
Originally developed by James Yonan
Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <[email protected]>
Compile time defines: enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dependency_tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=yes enable_fragment=yes enable_http_proxy=yes enable_iproute2=yes enable_libtool_lock=yes enable_lzo=yes enable_lzo_stub=no enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_password_save=yes enable_pedantic=no enable_pf=yes enable_pkcs11=yes enable_plugin_auth_pam=yes enable_plugin_down_root=yes enable_plugins=yes enable_port_share=yes enable_pthread=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_small=no enable_socks=yes enable_ssl=yes enable_static=yes enable_strict=no enable_strict_options=no enable_systemd=yes enable_win32_dll=yes enable_x509_alt_username=yes with_crypto_library=openssl with_gnu_ld=yes with_iproute_path=/sbin/ip with_mem_check=no with_plugindir='$(libdir)/openvpn/plugins' with_sysroot=no
Download and visit client source directory.
$ git clone https://github.com/OpenVPN/openvpn.git
$ cd openvpn
Compile OpenVPN-client.
$ autoreconf -i -v -f
$ ./configure
$ make
# make install
Make sure that the client is updated/installed.
$ openvpn --version
OpenVPN 2.3_git [git:master/7546cba4761b24f2] x86_64-unknown-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [MH] [IPv6] built on Nov 17 2015
library versions: OpenSSL 1.0.1p 9 Jul 2015, LZO 2.08