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
RHEL: GPT/MBR partition tables (using disks larger than 2 TiB)
Viewed 12405 times since Sun, May 27, 2018
Find All Large Files On A Linux System
Viewed 2287 times since Mon, Oct 29, 2018
How To Add Swap Space on Ubuntu 16.04
Viewed 2414 times since Fri, Jun 8, 2018
RHEL: iSCSI target/initiator configuration on RHEL7
Viewed 11271 times since Sat, Jun 2, 2018
How to run command or code in parallel in bash shell under Linux or Unix
Viewed 3324 times since Tue, Aug 6, 2019
Easily Find Bugs In Shell Scripts With ShellCheck
Viewed 3394 times since Thu, Apr 18, 2019
Need to set up yum repository for locally-mounted DVD on Red Hat Enterprise Linux 7
Viewed 3235 times since Mon, Oct 29, 2018
ZFS: Snapshots and clones on zfs filesystems
Viewed 3173 times since Sun, Jun 3, 2018
10 Linux nslookup Command Examples for DNS Lookup
Viewed 10312 times since Sun, Sep 30, 2018
RHEL: Allowing users to ’su’ to "root" / Allowing ’root’ to login directly to the system using ’ssh’
Viewed 2962 times since Sat, Jun 2, 2018