Install OpenVPN On CentOS / RHEL 7

Security is most important aspect in internet. Outsiders can monitor internet traffic between your computer and the web. Here the importance of VPN comes. VPN, or virtual private network, is a secure method of connecting remote internet resources together as if they were under the same LAN. OpenVPN is a popular open source application that implements a virtual private network. works on Linux, Windows, and Mac operating systems. It can be utilized to create a secure connection between physically distributed servers.

This Article explains How to install and configure OpenVPN in centOS 7 server.

Prerequisites

  • CentOS / RHEL 7 server.
  • root access to the server.
  • Domain or sub-domain that resolves to your server that you can use for the certificates

OpenVpn isn’t available in the default CentOS repositories. So we need to install Enterprise Linux (EPEL) repository. Use the following command to install EPEL repository.

 

Step 1 — Installing OpenVPN

First, We are going to install in the server by issuing the following command.

 

Step 2 —  Install Easy RSA

For generating our SSL key pairs, which will secure our VPN connections. Execute the following command:

 

Step 3 — Configuring OpenVPN

We can find an example configuration file in its documentation directoryWe need to copy the sampleserver.confby the following command.

Open the file in your favorite editor, I’m using editor,

Most of the lines just need to be uncommented (remove the </article></div></span>
													</div><div class=

0 (0)
Article Rating (No Votes)
Rate this article
Attachments
There are no attachments for this article.
Comments
There are no comments for this article. Be the first to post a comment.
Full Name
Email Address
Security Code Security Code
Related Articles RSS Feed
Use inotify-tools on CentOS 7 or RHEL 7 to watch files and directories for events
Viewed 13833 times since Fri, Jul 27, 2018
Linux Kernel /etc/sysctl.conf Security Hardening
Viewed 23328 times since Fri, Aug 3, 2018
How to do a Filesystem Resize (ext3/ext4) on Redhat running on VMware
Viewed 10855 times since Wed, Jul 25, 2018
3 Ways to Check Linux Kernel Version in Command Line
Viewed 11394 times since Fri, Apr 19, 2019
How To Find Largest Top 10 Files and Directories On Linux / UNIX / BSD find
Viewed 3662 times since Mon, Oct 29, 2018
debian Install a newer kernel in Debian 9 (stretch) stable
Viewed 1653 times since Sun, Sep 23, 2018
RHEL: Back-up/Replicate a partition table
Viewed 3184 times since Sun, May 27, 2018
Linux / UNIX: Run Command a Number of Times In a Row
Viewed 15725 times since Tue, Aug 6, 2019
Securing /tmp and shm partitions
Viewed 3057 times since Fri, May 15, 2020
How to retrieve and change partition’s UUID Universally Unique Identifier on linux
Viewed 2882 times since Tue, Jul 17, 2018