selfhost.directory

The index of self-hostable projects — ranked, categorized and served with live updates.
Own your data and stop giving it to big tech.

openvpn logo

Self-host openvpn

v2.7.9

Open-source SSL VPN daemon for tunnels and remote access

ReleaseOpen SourceApache-2.0
Updatedlast week
LanguageC
Setup difficultyModerate
Stars
14 821
Port
1194 (Default TCP/UDP port the OpenVPN daemon listens on (from the sample multi-client server config))
Install with Linux

What is openvpn?

OpenVPN is the reference open-source implementation of the OpenVPN protocol: a user-space SSL/TLS VPN daemon that runs as server or client on Linux, the BSDs, Solaris and Windows. It extends a network at OSI layer 2 or 3 through one UDP or TCP port and can tunnel through NAT, stateful firewalls and dynamic public endpoints. Peers authenticate with X.509 certificates, static pre-shared keys, or pluggable methods such as PAM, and it offers a management interface for building GUIs or centrally controlling daemons. Servers support remote access, site-to-site links, ethernet bridging, pushed routes and DNS, per-client configuration directories, and Data Channel Offload into the kernel for a big speed-up since version 2.6; newer releases use TLS 1.3 with hybrid post-quantum key agreement such as X25519MLKEM768. Self-hosting means installing the openvpn package (distro repo or the project's own apt, Fedora Copr or openSUSE repositories) or building the source tarball, then writing config files; there is no web UI. Commercial sibling products from OpenVPN Inc. (Access Server, CloudConnexa) are separate offerings.

Should you self-host openvpn?

openvpn scores 76/100 on selfhost.directory (how scoring works) and ranks #4 of 56 in VPN. It has 14 821 GitHub stars, +151 in the last 30 days.

It shipped 15 stable releases in the past year. The latest, v2.7.9, came out on 5 November 2026. New versions land roughly every 2 weeks.

Setup is moderate: expect some configuration beyond a single command. It is Apache-2.0-licensed and written mostly in C.

Its closest alternative on selfhost.directory is Tailscale (84/100, 39 174 stars). It scores higher overall, so compare the two before you pick. See openvpn vs Tailscale side by side.

Features

  • Certificate, smart card and 2-factor authentication
  • Data Channel Offload (kernel acceleration)
  • Ethernet bridging
  • IPv6 Support
  • Link compression and traffic shaping
  • Load-balanced multi-server scaling
  • Management interface
  • NAT and firewall traversal
  • Pluggable authentication (PAM)
  • Post-Quantum Cryptography
  • Privilege reduction and memory locking
  • Remote access and site-to-site VPN
  • Static pre-shared key encryption
  • TUN/TAP layer-2/3 tunneling
  • UDP or TCP transport on one port

openvpn README

OpenVPN -- A Secure tunneling daemon

Copyright (C) 2002-2026 OpenVPN Inc. This program is free software;
you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.

*************************************************************************

To get the latest release of OpenVPN, go to:

	https://openvpn.net/community-downloads/

To Build and Install,

	tar -zxf openvpn-<version>.tar.gz
	cd openvpn-<version>
	./configure
	make
	make install

or see the file INSTALL for more info.

For information on how to build OpenVPN on/for Windows with MinGW
or MSVC see README.cmake.md.

*************************************************************************

For detailed information on OpenVPN, including examples, see the man page
  http://openvpn.net/man.html

For a sample VPN configuration, see
  http://openvpn.net/howto.html

To report an issue, see
  https://github.com/OpenVPN/openvpn/issues/new

For a description of OpenVPN's underlying protocol,
  see the file ssl.h included in the source distribution.

*************************************************************************

Other Files & Directories:

* configure.ac -- script to rebuild our configure
  script and makefile.

* sample/sample-scripts/verify-cn

  A sample perl script which can be used with OpenVPN's
  --tls-verify option to provide a customized authentication
  test on embedded X509 certificate fields.

* sample/sample-keys/

  Sample RSA keys and certificates.  DON'T USE THESE FILES
  FOR ANYTHING OTHER THAN TESTING BECAUSE THEY ARE TOTALLY INSECURE.

* sample/sample-config-files/

  A collection of OpenVPN config files and scripts from
  the HOWTO at http://openvpn.net/howto.html

*************************************************************************

Note that easy-rsa and tap-windows are now maintained in their own subprojects.
Their source code is available here:

  https://github.com/OpenVPN/easy-rsa
  https://github.com/OpenVPN/tap-windows6

Community-provided Windows installers (MSI) and Debian packages are built from

  https://github.com/OpenVPN/openvpn-build

See the INSTALL file for usage information.

How to install openvpn

Install openvpn with Linux

# yum copr enable @OpenVPN/openvpn-release-2.7  # for OpenVPN 2.7 releases
# yum install openvpn

Copr repositories provide Stable, Testing and Snapshot releases for Fedora/RHEL.

How to configure openvpn

  • port1194TCP/UDP port OpenVPN listens on; must be opened in the firewall. Use a different port per instance when running multiple daemons.
  • protoChoose TCP or UDP transport.

    values: tcp, udp

  • devtunTunnel device type: tun creates a routed IP tunnel, tap creates an ethernet tunnel.

    values: tun, tap

  • caSSL/TLS root certificate (CA) file shared by server and all clients.
  • certThis host's X.509 certificate file.

openvpn releases & version history

@ Every self-hosted release, weekly

One Monday email with the week's stable releases across the directory.

More in VPN

Rate this project

Click to rate — no account needed.

0 comments

Posting as guest
Loading comments…