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.ģ. A private IP address behind NAT with a public IP: This is the case with an EC2 instance on AWS or a compute instance on Google Cloud.A single Public IP address: If you have a VPS on Cloud platforms such as Linode, Cloudcone, or Digital Ocean, you will usually find a single Public IP address attached to it.A Note About Public IP AddressesĬloud servers will usually have 2 types of IP addresses:
#How to install openvpn access server centos 7 install#
If you get into an error “ dig: command not found” install the dig utility by running the command: $ sudo yum install bind-utils Before downloading and running the script, it’s important that you find your server’s Public IP address as this will come in handy when setting up the OpenVPN server.Īn easy way to do that is to use the curl command as shown: $ curl Īlternatively, you can invoke the dig command as follows: $ dig +short CentOS Server IP Address Next, we will download OpenVPN’s installation script and set up the VPN. 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.