OpenVPN is an open-source VPN system that creates secure, encrypted tunnels between networks using TLS for authentication and key exchange. It is one of the most widely used VPN protocols in the world, and it is also the name of the free software that implements it and of the company that supports it.

Photo: KK IN HK, via Wikimedia Commons (CC BY-SA 4.0). OpenVPN’s code is open source, so anyone can inspect how it builds its encrypted tunnels.
What Is OpenVPN?
OpenVPN is three related things, and guides often switch between them without saying so.
The OpenVPN protocol is the set of rules that creates encrypted tunnels between networks and establishes a VPN connection. It uses a custom security protocol based on SSL/TLS for key exchange, and the OpenSSL library for encryption. This guide focuses on the protocol, which is what most VPN apps mean when they list OpenVPN as an option.
The OpenVPN software is the free, open-source program that implements the protocol. It runs on Windows, macOS, Linux, Android, and iOS.
The OpenVPN company (OpenVPN Inc.) supports the open-source project and sells commercial products built on top of it, including OpenVPN Access Server for businesses.
OpenVPN was written by James Yonan and first released in 2001. It is released under the GNU General Public License version 2, which means its code is publicly available for anyone to inspect, audit, and contribute to. That openness is a large part of why it earned its reputation: security researchers have been able to read the code for over two decades rather than taking the security on trust.
OpenVPN implements both client and server applications, and it creates secure point-to-point or site-to-site connections in routed or bridged configurations, plus remote access for individual users. Our guide to VPN protocols compares OpenVPN with IPsec and WireGuard, and our guide to how does a VPN work explains the tunnel OpenVPN builds.
How Does OpenVPN Work?
Creating a VPN tunnel with OpenVPN takes five steps.
- Initiation. The OpenVPN client sets up a connection to the VPN server, usually over a single UDP or TCP port. OpenVPN can pass through network address translation and firewalls without special rules, which is one reason it became so widely adopted.
- Authentication. The two sides prove who they are. OpenVPN supports pre-shared secret keys, certificates, username and password, or a combination of these. Certificate-based authentication uses the X.509 public key infrastructure, the same system that secures websites.
- Key exchange. The client and server use TLS to agree on session keys securely. OpenVPN also supports tls-crypt and tls-auth, which add an extra authentication layer to the control channel itself.
- Tunnel creation. OpenVPN creates a virtual network interface on the device, called a TUN device for routed traffic or a TAP device for bridged traffic. All traffic meant for the VPN is sent through this interface.
- Data transfer. Traffic is encrypted with a cipher such as AES-256-GCM or ChaCha20, sent through the tunnel, and decrypted at the other end. The session keys are rotated regularly, so a long connection does not keep using the same key material.
OpenVPN uses the OpenSSL library extensively for encryption of both the data and control channels, and it contains many security and control features, including support for two-factor authentication, smart cards, and per-user or per-group access control policies applied through firewall rules on the virtual interface.
OpenVPN TCP vs UDP
OpenVPN runs over either UDP or TCP, and VPN apps usually let you pick. The choice is a trade-off between speed and reliability.
OpenVPN over UDP is the default in most apps and the faster option. UDP sends packets without waiting for delivery confirmations, so there is less overhead and lower latency. That makes it the better pick for streaming, gaming, and general browsing.
OpenVPN over TCP sends packets with delivery confirmations and retries, which makes it slower but more reliable on networks that block or throttle UDP traffic. Because TCP traffic on port 443 looks like ordinary HTTPS web traffic, it is also harder for a restrictive network to identify and block. It is the fallback when UDP does not connect.
If UDP works on your network, use it. If the connection keeps failing on a restricted network, such as a hotel or workplace firewall, switch to TCP and try again.

Photo: Jacek Rużyczka, via Wikimedia Commons (CC BY-SA 3.0). OpenVPN began as a command-line daemon; the graphical clients came later.
TUN vs TAP: Two Modes
OpenVPN has two operating modes, and they decide what kind of traffic the tunnel carries.
TUN mode (routing mode) creates a virtual network interface that carries IP packets, which is layer 3 of the network stack. It is the mode used for almost all VPN connections, including every consumer VPN app, because routing IP traffic is all a VPN needs to do.
TAP mode (bridging mode) creates a virtual ethernet adapter that carries whole ethernet frames, which is layer 2. It lets remote devices behave as though they were plugged into the same local network, including broadcast traffic. It is used for specific setups, such as bridging a remote office onto a local network, and it carries more overhead than TUN.
Android supports only TUN mode, because of a limitation in the platform’s VPN API. For most readers the distinction does not matter: the app picks TUN, and that is the right choice.
OpenVPN Software: Community Edition, Connect, and Access Server
The name OpenVPN covers several pieces of software, and knowing which one you are looking at avoids confusion.
OpenVPN Community Edition is the free, open-source version maintained by the OpenVPN project. It is the daemon that runs the tunnel, configured through text files and the command line. Technical users run it directly; everyone else uses a graphical client built on top of it.
OpenVPN Connect is the official free client app for Windows, macOS, Android, and iOS. It connects to any OpenVPN server using a configuration file, which is a text file with a .ovpn extension that holds the server address, certificates, and settings. Many VPN providers supply .ovpn files for their servers, and importing one into OpenVPN Connect is how you use a provider without its own app.
OpenVPN Access Server is the company’s commercial product for businesses. It combines the OpenVPN server with a management interface, enterprise management features, and simplified OpenVPN Connect clients. It is the product behind most company-run OpenVPN deployments, including the self-hosted setups described in our guide to self-hosted VPN.
Version History: DCO and OpenVPN 2.7
OpenVPN’s version history matters because a feature’s age is often misstated. The important dates, checked against the project’s official release history, are as follows.
Data Channel Offload (DCO) arrived in OpenVPN 2.6, released in January 2023. DCO moves encryption of the data channel into the operating system kernel, instead of passing every packet through the user-space daemon. That reduces the work of moving packets between kernel and user space and improves throughput, particularly on fast connections. DCO was first delivered through an out-of-tree kernel module, ovpn-dco.
OpenVPN 2.7.0, released on 11 February 2026, is the current stable line. Its highlights include multi-socket support for servers, so one server process can handle multiple addresses, ports, and protocols; support for server mode in the win-dco driver on Windows, with the older wintun driver removed and win-dco now the default; improved DNS handling on clients; a new PUSH_UPDATE control-channel message that lets servers send routing and DNS updates without forcing clients to reconnect; and support for the new upstream in-tree Linux ovpn kernel module, with backports available for current kernels through the ovpn-backports project. Later 2.7 releases continued with bug fixes, reaching 2.7.9 in November 2026.
The common mistake is to credit DCO to 2.7. It belongs to 2.6. What 2.7 added was support for the new in-tree kernel module that replaces the earlier out-of-tree driver.

Photo: Carl Lender, via Wikimedia Commons (CC BY 2.0). Access Server is the commercial product businesses use to run OpenVPN for their staff.
OpenVPN vs WireGuard
The comparison readers ask about most is OpenVPN against WireGuard, and it is a genuine trade-off rather than a clear win for either side.
OpenVPN is older, more configurable, and more widely supported. It runs on almost every platform, passes through restrictive firewalls more easily thanks to its TCP mode, and has two decades of audits and real-world use behind it. Its cost is complexity: the codebase is large, configuration has many options, and it is slower than WireGuard on the same hardware.
WireGuard is newer, simpler, and faster, with a deliberately small codebase and a fixed set of modern ciphers. Its cost is flexibility: it offers fewer options, it has no built-in way to distribute keys or push configurations, and it runs only over UDP, which some restrictive networks block. Our guide to WireGuard covers it in full, including the comparison with OpenVPN in detail.
For most people the choice is made by the VPN app, which picks WireGuard by default and offers OpenVPN as the fallback for networks where WireGuard does not connect. That is a sensible default.
Is OpenVPN Free, and How Do You Use It?
Yes, the OpenVPN protocol and the Community Edition software are free and open source. What costs money is the service behind it: either a commercial VPN subscription, or a server of your own to connect to.
Using OpenVPN in a consumer VPN app is simple: pick OpenVPN in the app’s protocol settings and connect. Using it directly takes a few more steps.
- Get a configuration file. Your VPN provider, or your own server, supplies a .ovpn file. Download it to the device.
- Install a client. OpenVPN Connect is the official app on Windows, macOS, Android, and iOS. OpenVPN GUI is the community alternative on Windows.
- Import the file. Open the .ovpn file in the client, which loads the server address, certificates, and settings.
- Connect. Enter your username and password if the setup requires them, then connect. The client shows the connection status and the protocol in use.
- Check the connection. Confirm your visible IP address has changed to the server’s address, and that traffic stops flowing if you disconnect, which confirms the tunnel is carrying your traffic.
Setting up your own OpenVPN server is a bigger job: it needs a server, certificates for each user, firewall rules, and ongoing maintenance. It suits people who want full control and are comfortable managing a server. For everyone else, a commercial VPN app that offers OpenVPN as a protocol option gives the same encryption without the server work.

Photo: Shixart1985, via Wikimedia Commons (CC BY 2.0). OpenVPN Connect imports a .ovpn file and connects in a couple of taps.

Photo: Shixart1985, via Wikimedia Commons (CC BY 2.0). For most readers, OpenVPN is a protocol setting inside an app, not a server to manage.
Advantages and Disadvantages of OpenVPN
Advantages. It is open source and heavily audited. It is highly configurable, with support for any cipher, key size, or authentication method the SSL library provides. It works on almost every platform, handles dynamic IP addresses and NAT well, scales to thousands of clients, and its TCP mode gets through restrictive networks that block other protocols.
Disadvantages. It is slower than WireGuard, partly because it runs in user space rather than the kernel, although DCO closes much of that gap. Configuration is complex, with many options that have to be set correctly.
OpenVPN remains the safe default for compatibility. If a VPN needs to work everywhere, on every device and every network, OpenVPN is the protocol most likely to do it.
Related Guides
- VPN protocols compared: OpenVPN against IPsec and WireGuard.
- Types of VPN and VPN technologies: the full overview of VPN types.
- How does a VPN work: the tunnel OpenVPN builds.
- VPN encryption explained: AES, key exchange, and perfect forward secrecy.
- IPsec VPN explained: the network-layer alternative.
- Dedicated and static IP VPN: a fixed address on your VPN connection.
- WireGuard explained: the faster, simpler alternative.
Watch: How to Make Your Own VPN Server with OpenVPN
How to Make Your Own VPN Server in 2026 | EASY OpenVPN Setup
How to Make Your Own VPN Server in 2026 | EASY OpenVPN Setup, by Hostinger Academy. It walks through installing OpenVPN, configuring routing and DNS, and connecting Windows and macOS devices.

Photo: Marcy Sanchez, via Wikimedia Commons (public domain). OpenVPN scales from one laptop to server farms handling thousands of clients.
FAQs
What is OpenVPN?
OpenVPN is an open-source VPN system that creates secure, encrypted tunnels between networks using TLS for authentication and key exchange. The name covers the protocol, the free software that implements it, and the company that supports the project and sells Access Server for businesses.
Is OpenVPN free?
Yes. The OpenVPN protocol and the Community Edition software are free and open source under the GPLv2 licence. OpenVPN Connect, the official client app, is also free. You still need a VPN service or your own server to connect to, and those are what cost money.
Is OpenVPN safe?
Yes. OpenVPN is open source, so its code has been inspected and audited for over two decades, and it supports strong encryption such as AES-256-GCM with TLS authentication and perfect forward secrecy. Safety also depends on the setup: use current versions and strong ciphers.
What is the difference between OpenVPN TCP and UDP?
OpenVPN over UDP is faster and is the default in most apps, because UDP sends packets without delivery confirmations. OpenVPN over TCP is slower but more reliable on networks that block UDP, and because it can run on port 443 it looks like ordinary HTTPS traffic, which makes it harder to block.
What is OpenVPN DCO?
Data Channel Offload moves encryption of the data channel into the operating system kernel, instead of passing every packet through the user-space daemon. It arrived in OpenVPN 2.6, released in January 2023. OpenVPN 2.7, released in February 2026, added support for the new in-tree Linux ovpn kernel module.
Sources
6
- OpenVPN Community Wiki. “Overview of OpenVPN.” https://community.openvpn.net/openvpn/wiki/OverviewOfOpenvpn
- OpenVPN Community Wiki. “Release History.” https://community.openvpn.net/ReleaseHistory
- Wikipedia. “OpenVPN.” https://en.wikipedia.org/wiki/OpenVPN
- Surfshark. “What is OpenVPN, and how does it work?” https://surfshark.com/blog/what-is-openvpn
- NordVPN. “OpenVPN: What is it and how does it work?” https://nordvpn.com/blog/what-is-openvpn/
- Gizmodo. “Download OpenVPN for Windows, macOS, Android, iOS and Linux.” https://gizmodo.com/download/openvpn
Every factual claim on this page was verified against a named source above.




