How to install OpenVPN on various linux distro
Share the post "How to install OpenVPN on various linux distro"
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.
Share the post "How to install OpenVPN on various linux distro"
Related articles
- Apache HTTP Server installation from source code in linux
- How to change the Apache HTTP port number
- How to install VLC on Fedora Linux
- How to install and configure apache server from source
- How to install and configure NFS Server
- How to install and configure SSH Server
- How to install and configure Telnet Server
- How to install Debian packages from CD-ROM
- How to install Skype on openSUSE
- How to install skype on CentOS 6 / RHEL 6
Advertisement
Follow us on Twitter
Follow us on GooglePlus
Find us on Facebook
Recent Posts
- Easy method to install Skype in CentOS 6.3, RHEL – 6.3
- Easy method to recover linux root password
- Easy method to install KDE in ubuntu 12.04
- How to disable selinux
- Change selinux to permissive
- How to check selinux status
- Get website details
- How to install nginx in ubuntu
- How to install nginx in RHEL 5
- How to install nginx in RHEL 6
- How to install nginx in centos 5
- Get linux OS details – Kernel version, distribution version, name, architecture, codename, release
- Service start, stop, restart – nginx in centos
- How to change nginx port number
- How to install nginx on centos 6
- Rsync command with ssh port number
- File creation date and time in linux
- How to install Java in ubuntu linux
- How to install Oracle Java JDK in ubuntu
- How to set password for website
- Plesk – MySQL admin login – password
- How to install and configure PHPMyAdmin from source code in CentOS / RHEL / Fedora linux
- How to find out mysql uptime
- How to backup and restore mysql database
- How to recover mysql root password
- How to connect Mobile Broadband in the ubuntu linux
- Easy method to update bootloader in linux
- Webcam software for linux
- Check memory usage in linux
- How to find out CPU utilization in linux
