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

Page 1 of 212

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.95/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...

12 Responses

  1. Big Ian says:

    [[email protected] user]# yum install openvpn
    Loaded plugins: fastestmirror, langpacks
    Loading mirror speeds from cached hostfile
    * base: mirrors.vooservers.com
    * extras: mirror.vorboss.net
    * updates: mirror.mhd.uk.as44574.net
    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.

    https://github.com/Nyr/openvpn-install

    -derpadi49

  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. https://github.com/ttlequals0/autovpn

  7. batisfera says:

    Obsolete already

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

  9. pcasisten says:

    Hi,
    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 *