AnyProxy

Get Pro
Glossary · VPN & tunneling

OpenVPN

Also calledopenvpn protocol
Definition

OpenVPN is an open-source VPN protocol and program, first released in 2001, that builds its encrypted tunnel with TLS and can run over either UDP or TCP.

Explanation

In depth

OpenVPN is the long-standing workhorse of VPNs: free, open source, available on almost every platform, and supported by most commercial VPN apps and many company networks. It uses TLS, the same family of protocols behind HTTPS, to authenticate and agree keys, then encrypts the tunnel with ciphers chosen in its configuration. That configurability is both its strength and its weakness. Administrators can tune certificates, ciphers, ports and transport, but there are more settings to get wrong, and the program runs in user space, which usually makes it slower than WireGuard on the same hardware. Its registered port is UDP 1194. Running it over TCP on port 443 makes it pass simple port-based firewalls, because that port normally carries HTTPS and is rarely blocked. That trick does not defeat deep packet inspection: OpenVPN's handshake has a recognisable pattern, so national filters can identify it unless an obfuscation layer is added. TCP mode can also slow down on lossy networks, when both the outer and inner connections retry the same lost data. A web proxy avoids these problems differently, by being ordinary HTTPS from the start.

In practice

OpenVPN in the real world

OpenVPN dates from 2001 and uses its own protocol on top of TLS. Its registered port is 1194, but it can also run over TCP on port 443 so the connection looks more like ordinary HTTPS — a common trick on restrictive networks. That flexibility comes at a cost: OpenVPN runs in user space and is usually slower than WireGuard, and its handshake can still be fingerprinted by deep packet inspection.

Sources: OpenVPN community resources · Wikipedia - OpenVPN (pointer)

Questions about OpenVPN

Why run OpenVPN on port 443?
Port 443 is used by HTTPS and is almost never blocked. Running OpenVPN over TCP 443 helps it pass simple port filters, though DPI can still recognise it.
TCP or UDP for OpenVPN?
UDP is usually faster. TCP is more likely to get through restrictive firewalls but can suffer when the outer and inner connections both retransmit.
Is OpenVPN still worth using?
Yes, where you need TCP support or fine-grained configuration, for example on corporate networks. For everyday speed on phones and laptops, WireGuard is usually quicker.

Related terms

VPNA VPN (virtual private network) is software that sends all of a device's network traffic through an encrypted connection to a provider's server, which then contacts websites on the device's behalf.WireGuardWireGuard is an open-source VPN protocol that encrypts traffic with a small, fixed set of modern algorithms and runs only over UDP.IKEv2IKEv2 (Internet Key Exchange version 2) is the standard protocol that sets up IPsec VPN connections; it is valued on phones because it can keep a VPN alive when the network changes.VPN tunnelA VPN tunnel is the encrypted link between a device and a VPN server, made by wrapping each original packet inside a new packet addressed to the server.

Put the concept to work

Try AnyProxy free — no install, no signup, six regions.

Open a blocked page