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
How to Configure ‘FirewallD’ in RHEL/CentOS 7 and Fedora 21
Viewed 10575 times since Wed, Oct 9, 2019
How To: Linux Hard Disk Encryption With LUKS [ cryptsetup Command ]
Viewed 7404 times since Fri, Jul 13, 2018
Linux / UNIX: DNS Lookup Command
Viewed 9654 times since Sun, Sep 30, 2018
RHEL: Crash kernel dumps configuration and analysis on RHEL 7
Viewed 7226 times since Sat, Jun 2, 2018
How to use yum-cron to automatically update RHEL/CentOS Linux 6.x / 7.x
Viewed 5149 times since Tue, Dec 4, 2018
SSL HowTo: Decode CSR
Viewed 5102 times since Mon, Feb 18, 2019
RHEL: XFS basic operations
Viewed 16103 times since Sat, Jun 2, 2018
How to find your System details using inxi
Viewed 3448 times since Sat, Jun 2, 2018
Exclude multiple files and directories with rsync
Viewed 2624 times since Wed, Oct 31, 2018
Managing temporary files with systemd-tmpfiles on Red Hat Enterprise Linux 7
Viewed 9715 times since Sun, Nov 22, 2020