What it is
A mature program and protocol for encrypted tunnels on TLS, around since 2001. Supported by almost every router and firewall, works over UDP or TCP, access by certificates.
How we apply it
When the company's equipment or policy already relies on it. For a new network without such requirements we choose WireGuard: it is faster and simpler to maintain.
What it is in plain words
OpenVPN is a program and protocol for encrypted tunnels that has been around since 2001. It connects remote staff and offices to a company network and protects the channel with TLS, the same technology as HTTPS. Because of its age it is supported by almost every router, firewall and operating system, and many corporate policies were written with it in mind.
Where it helps a business
- The company already has routers, firewalls or a remote access policy built around OpenVPN.
- Branch offices or contractors can connect only with this protocol.
- A network allows only TCP connections, and the tunnel has to run over TCP.
- Access must be tied to certificates issued by the company itself, with the option to revoke a certificate.
How it works
- Certificates. The company runs its own certificate authority (PKI). The server and each user get a certificate; access is checked by the certificate, sometimes with a login and password on top.
- A profile file. A user receives one configuration file with the server address, settings and keys, and imports it into the client.
- UDP or TCP. UDP is faster and is the default; TCP is used where UDP is not allowed.
- Pushed settings. The server tells the client which routes and DNS servers to use, so the network can be changed in one place.
OpenVPN and WireGuard
| OpenVPN | WireGuard |
|---|
| Age and support | since 2001, supported nearly everywhere | since 2016, in the Linux kernel since 2020 |
| Speed | lower, runs in user space | higher, runs in the kernel |
| Configuration | many options, easy to get wrong | short and strict |
| Authentication | certificates, logins, LDAP and similar | key pairs only |
| Transport | UDP or TCP | UDP only |
For a new network without legacy requirements we usually choose WireGuard: it is faster and simpler to maintain. OpenVPN stays where compatibility matters more.
Common mistakes
- TCP over TCP. A tunnel over TCP carrying TCP traffic slows down sharply on a lossy line. Use UDP wherever it is allowed.
- Expired certificates. The authority's or the server's certificate expires, and on a Monday nobody can connect. Expiry dates need monitoring.
- No revocation list. A former employee's certificate keeps working unless it is added to the revocation list (CRL) and the server reads it.
- Outdated encryption settings. Old configs carry ciphers and compression that are no longer considered safe; they are updated together with the server.
- One profile for everyone. A shared file with a shared certificate makes it impossible to cut off one person.
When you do not need it
Without old equipment or policies that require OpenVPN, a new network is better built on WireGuard or Tailscale. And to administer a single server, SSH by key is enough.