Skip to content

Choosing a protocol ​

An inbound is one VPN server with its own port and tunnel network, and every inbound runs exactly one protocol: OpenVPN, WireGuard, OpenConnect, IKEv2 or L2TP/IPsec. This page compares them so you can decide which inbounds to create. The pages that follow cover each protocol in detail.

All of them are available on every plan, including Free. Clients, groups, traffic limits, end dates, device limits, node multipliers and the Connections list work the same way whichever protocol a client uses.

At a glance ​

OpenVPNWireGuardAmneziaWGOpenConnectIKEv2L2TP/IPsec
TransportUDP or TCPUDPUDPTCP, plus UDP (DTLS) on the same port numberUDP 500 and 4500UDP 500, 4500 and 1701
Port the form suggests11945182051820443fixedfixed
Sign-inCertificate, certificate and password, or password onlyNone; the device holds its own keyNone; the device holds its own keyClient name and passwordClient name and passwordShared key, then name and password
What a client importsA profile fileA .conf file or QR code, one per deviceA .conf file or QR code, one per deviceA server address, typed into the appA setup file, or settings typed inA setup file, or settings typed in
AppsOpenVPN Connect and other OpenVPN appsWireGuardAmneziaVPN, AmneziaWGCisco Secure Client, OpenConnect appsBuilt into the device; strongSwanBuilt into Apple devices and Windows
Needs on the machineOpenVPN 2.5 or newerTUN (/dev/net/tun)TUN (/dev/net/tun)ocserv, installed from the panelstrongSwan on Ubuntu, installed from the panelstrongSwan and PPP, installed from the panel
DetailsOpenVPNWireGuard and AmneziaWGWireGuard and AmneziaWGOpenConnectIKEv2L2TP/IPsec

AmneziaWG is not a fourth protocol in the New inbound form. It is a WireGuard inbound with Amnezia obfuscation switched on, and it appears as its own tab on the subscription page.

What they have in common ​

  • A client is created once and can be allowed on inbounds of any protocol. Which inbounds a client gets is decided by its groups.
  • The device limit counts a client's connections across every inbound, every node and every protocol together. See The life of a connection.
  • Traffic is counted in both directions and multiplied by the node's traffic multiplier.
  • The client's subscription page shows one tab for each protocol the client has access to: OpenVPN, WireGuard, AmneziaWG, Cisco, IKEv2 and L2TP/IPsec. The owner can reorder, hide or rename tabs in Settings. See Subscription page.

What differs ​

OpenVPNWireGuardOpenConnect
ProfileOne profile per client, used on all devicesOne configuration per deviceNo file; address plus name and password
Counting devicesEvery open tunnel countsEvery device that completed a handshake in the last three minutes countsEvery open tunnel counts
Client certificateYes, unless the inbound uses password sign-inNoNo
Looks likeVPN trafficVPN trafficOrdinary HTTPS, usually on port 443
Behind a relayYes, per connect addressYes, the relay must forward UDPYes, but a trusted certificate does not match the relay's name

How to choose ​

  • Start with OpenVPN if you do not know your customers' networks. Its apps exist on every platform and it can fall back to TCP when UDP is blocked.
  • Add WireGuard for customers who want speed and light battery use on phones. Give each device its own configuration.
  • Add an Amnezia-mode WireGuard inbound on a second port for networks that block plain WireGuard. Plain WireGuard apps cannot connect to it.
  • Add OpenConnect on port 443 for networks that block OpenVPN but let HTTPS through, or for customers who already use the Cisco app.
  • Add IKEv2 for customers who want no app at all: it is built into iPhones, Macs, Windows and recent Android. Add L2TP/IPsec only for devices that cannot use IKEv2.
  • Send traffic out through another server on any of them with outbound routing.
  • Run more than one. A client allowed on several protocols sees them all on its subscription page and picks whichever works on its current network.

One port, one inbound

Two inbounds cannot use the same port and protocol on one node. OpenConnect on TCP 443 conflicts with an OpenVPN inbound on TCP 443. The attach dialog on Nodes checks this and tells you before anything starts.

Proprietary software · documentation free to share