

Now head over to the client system and install EPEL repository and OpenVPN software packages. $ sudo systemctl status Check OpenVPN Server Status How to Configure OpenVPN Client in Linuxġ1. Now, you can start and check the status of the OpenVPN server as shown. This is a virtual interface where all traffic from the client PC will be tunnelled to the server. Once the script is done setting up the OpenVPN server and creating the client configuration file, a tunnel interface tun0 will be spawned. OpenVPN Client Configuration with Easy-RSAĩ. The client file will be stored in your home directory with a. Simply provide the name of the client and go with the default selections. Lastly, a client configuration file will be generated using the easy-RSA package which is a command-line tool used for managing security certificates. Once done, the script will initialize the setup of the OpenVPN server along with the installation of the other software packages and dependencies.

Next, select the default DNS resolvers and select the No option ( n ) for both compression and encryption settings. Thereafter, it’s recommended to go with the default options such as default port number ( 1194) and protocol to use ( UDP). First, you will be prompted to provide your server’s public IP address. The installer takes you through a series of prompts:ĥ. When the download is complete, assign execute permissions and run the shell script as shown. Now let’s proceed and download the OpenVPN installation script, run the command shown. Whichever the IP addressing scheme, the OpenVPN script will automatically detect your VPS network setup and all you have to do is to provide the associated Public or Private IP address.ģ.

This comes with all the dependencies needed to install the OpenVPN package. To install OpenVPN in an RHEL/ CentOS 8/7 server, you will first have to enable the EPEL repository and then install the package.
