0
OpenVPN is an open-source VPN software application that allows users to create or join virtual private network (VPN) or remote access facilities over the Internet.

In this tutorial, we are going to see how to easily install an OpenVPN Server under Debian and CentOS. We will use a bash script created by Nyr, it will easily install OpenVPN on your system in a just a few minutes.

With this bash script, you can install OpenVPN under the following Linux platforms:
  • Debian 8/7 or older
  • CentOS 7/6 or older
OpenVPN Server Setup

Open the terminal and install OpenVPN using these commands:

su - 
wget git.io/vpn --no-check-certificate -O openvpn-install.sh 
bash openvpn-install.sh

Next, follow setup instructions. If the installation is successful, you can add more clients by just re-running the script and follow instructions. Re-running the script will also allow you to uninstall OpenVPN:

Looks like OpenVPN is already installed
What do you want to do?
   1) Add a cert for a new user
   2) Revoke existing user cert
   3) Remove OpenVPN
   4) Exit
Select an option [1-4]:

Troubleshooting

If you get this error:

Another app is currently holding the yum lock; waiting for it to exit...  The other application is: PackageKit

Try to resolve it using this command:

 gpk-prefs &disown

Post a Comment

 
Top