How to Install and Configure OpenVPN Server with Linux and Windows Clients in RHEL/CentOS 7

Best Affordable Linux and WordPress Services For Your Business
Outsource Your Linux and WordPress Project and Get it Promptly Completed Remotely and Delivered Online.

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Gabriel Cánepa

Gabriel Cánepa is a GNU/Linux sysadmin and web developer from Villa Mercedes, San Luis, Argentina. He works for a worldwide leading consumer product company and takes great pleasure in using FOSS tools to increase productivity in all areas of his daily work.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

19 Responses

  1. Big Ian says:

    [[email protected] user]# yum install openvpn
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
    * base:
    * extras:
    * updates:
    No package openvpn available.
    Error: Nothing to do

    • Ravi Saive says:

      @Big Ian,

      Have you installed epel-release package on the system? if not first install it as shown:

      # yum install epel-release

      Once epel installed, you can install openvpn.

      # yum install openvpn
  2. Patric S. says:

    I would use this Script from nyr. In my opinion is this the best alternative.


  3. Urs says:

    Small typo:
    cp ca.crt server.crt server.key /../.. (should be “../../”)

  4. dilan says:

    Please I am looking for how to install Open VPN Server on Linux, I want to run my computer..

  5. testsubject says:

    ca somethingelse.crt <—– shouldn't this be ca.crt?
    cert somethingelse.crt
    key somethingelse.key

  6. Ttlequals0 says:

    Here is an even quicker way of doing this that creates the Endpoint in any AWS region on demand.

  7. batisfera says:

    Obsolete already

  8. Nice article!
    Would love to see add user account, and point into different vlan

  9. pcasisten says:

    is there an error in that sentence?
    To set up a client (regardless of the distribution or operating system) you will need to copy the ca.crt, server.crt, and server.key files from /etc/openvpn/rsa/keys.

    wouldn’t be the client.crt and client.key files copied instead?

  10. cray says:

    journalctl –xn must be written with one dash, at least it is in Fedora. Double dash is not recognized

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.