Protocols

VPN and proxy protocols: list, comparison and which VPN protocol to choose

A VPN or proxy protocol is the set of rules a client and a server use to carry your traffic. VPN protocols such as WireGuard, OpenVPN and IKEv2 move whole IP packets, while proxy protocols such as VLESS, Trojan, Shadowsocks and Hysteria2 move separate connections and usually hide them inside TLS or QUIC. Which VPN protocol to choose depends on what your network blocks, how many packets it loses and what your device can run, so the guide below starts from those cases.

Proxy protocols9

Carry the connections of apps and browsers to a server, usually disguised as HTTPS or HTTP/3. Opened by a link: vless://, ss://, hysteria2:// and so on.

VPN protocols9

Carry whole IP packets of the device through a tunnel. Usually a settings file: .conf, .ovpn, or a profile built into the system.

The Veli protocolOur own protocol: to the network it looks like an ordinary website, and it finds a way through by itself.

Which protocol to choose for your case

No protocol suits every network, and none is invisible to a determined filter. Start from what happens on your connection; every name leads to its own page.

  • Your network blocks or slows down VPNs

    VLESS with Reality, Trojan, NaiveProxy and AnyTLS look like HTTPS to a website, and AmneziaWG removes the fixed packet values WireGuard is recognized by.

    VLESSTrojanNaiveProxyAnyTLSAmneziaWG

  • Mobile data or weak Wi-Fi that loses packets

    Hysteria2 and TUIC run on QUIC, where a lost packet holds up only its own connection, not the whole tunnel.

    Hysteria2TUIC

  • Games, calls and low ping

    WireGuard, AmneziaWG and Hysteria2 carry game and voice UDP as UDP, with no TCP underneath waiting for lost packets.

    WireGuardAmneziaWGHysteria2

  • A router

    WireGuard has been part of the Linux kernel since version 5.6 (2020), and OpenVPN is built into the stock firmware of many routers.

    WireGuardOpenVPN

  • An old device or an office network

    IKEv2 and L2TP/IPsec need no extra app on most systems, OpenConnect joins Cisco AnyConnect style office gateways, and SoftEther serves several protocols from one server.

    IKEv2/IPsecPPTP, L2TP and SSTPOpenConnectSoftEther VPN

  • Only a CDN can reach your server

    VLESS, VMess and Trojan can travel over WebSocket, gRPC or XHTTP, which a CDN forwards like any other HTTPS request.

    VLESSVMessTrojan

  • A phone that keeps switching between Wi-Fi and mobile data

    WireGuard and AmneziaWG pick up the new address from the next packet without a new handshake, and IKEv2 does the same through MOBIKE.

    WireGuardAmneziaWGIKEv2/IPsec

  • Your own server with the least setup

    WireGuard and Shadowsocks need only keys or a password, and VLESS with Reality needs no domain or certificate of your own.

    WireGuardShadowsocksVLESS

All protocols side by side

The same facts for every protocol. Open a row for versions, the link by fields and what a censor sees.

  • VLESS

    What it is
    Proxy protocol for TCP and UDP traffic
    Transport
    TCP (RAW), XHTTP, gRPC, WebSocket, HTTPUpgrade, mKCP
    Looks like
    With TLS or Reality, an HTTPS connection to a website
    In Veli
    Windows, macOS, Linux, Android · link
  • VMess

    What it is
    Proxy protocol with its own encryption
    Transport
    TCP, WebSocket, gRPC, HTTPUpgrade, mKCP; XHTTP in Xray
    Looks like
    Random bytes; with TLS, an HTTPS connection
    In Veli
    Windows, macOS, Linux, Android · link
  • Trojan

    What it is
    Proxy hidden inside TLS
    Transport
    TCP with TLS; UDP framed inside it
    Looks like
    An HTTPS website with a valid certificate
    In Veli
    Windows, macOS, Linux, Android · link
  • Shadowsocks

    What it is
    Encrypted proxy with a pre-shared key
    Transport
    TCP and UDP
    Looks like
    Random bytes from the very first packet
    In Veli
    Windows, macOS, Linux, Android · link
  • Hysteria2

    What it is
    Proxy protocol; a client app turns it into a VPN
    Transport
    QUIC over UDP: TCP in streams, UDP in datagrams
    Looks like
    HTTP/3 to port 443; random UDP with Salamander
    In Veli
    Windows, macOS, Linux, Android · link
  • TUIC

    What it is
    Proxy protocol over QUIC; a client app turns it into a VPN
    Transport
    QUIC over UDP; UDP as datagrams or in streams
    Looks like
    QUIC with TLS; no masquerade site or obfuscation
    In Veli
    Windows, macOS, Linux · link
  • AnyTLS

    What it is
    TCP proxy inside TLS that reshapes its first packets
    Transport
    TCP; UDP inside it via udp-over-tcp v2
    Looks like
    TLS to your own server, first packets cut and padded
    In Veli
    Windows, macOS, Linux · sing-box JSON
  • ShadowTLS

    What it is
    Disguise layer in front of another proxy, usually Shadowsocks
    Transport
    TCP only
    Looks like
    TLS to a popular site, with that site's real certificate
    In Veli
    Not supported
  • NaiveProxy

    What it is
    HTTPS forward proxy; the client is Chromium's network stack
    Transport
    HTTP/2 CONNECT over TLS on TCP; HTTP/3 optional
    Looks like
    Chrome opening an HTTPS site on your domain
    In Veli
    Not supported
  • WireGuard

    What it is
    VPN: a virtual adapter that carries IP packets
    Transport
    UDP only, no TCP mode
    Looks like
    UDP with fixed type bytes and handshake sizes
    In Veli
    Windows, macOS, Linux, Android · file
  • AmneziaWG

    What it is
    VPN: WireGuard with disguised packets
    Transport
    UDP only, like WireGuard
    Looks like
    UDP of random sizes; decoys from 1.5 can imitate QUIC
    In Veli
    Windows, macOS, Linux, Android · file
  • OpenVPN

    What it is
    VPN: TUN for IP packets, TAP for Ethernet frames
    Transport
    UDP by default, or TCP
    Looks like
    Its own header: an opcode byte, TLS inside
    In Veli
    Windows, Linux · file
  • IKEv2/IPsec

    What it is
    VPN: IPsec tunnel with IKEv2 key exchange
    Transport
    UDP 500 and 4500, or bare ESP; TCP per RFC 9329
    Looks like
    IKE and ESP packets, recognisable by their headers
    In Veli
    Not supported
  • PPTP, L2TP and SSTP

    What it is
    Three VPN tunnels that carry PPP, built into Windows
    Transport
    PPTP: TCP 1723 and GRE; L2TP/IPsec: UDP 500, 4500; SSTP: TCP 443
    Looks like
    PPTP and L2TP: a plain VPN; SSTP: a TLS session
    In Veli
    Not supported
  • SoftEther VPN

    What it is
    Multi-protocol VPN server with its own SSL-VPN protocol
    Transport
    TLS over TCP, optional UDP; also ICMP and DNS modes
    Looks like
    HTTPS; the server's certificate is self-signed by default
    In Veli
    Not supported
  • OpenConnect

    What it is
    SSL VPN: full IP tunnel, AnyConnect-compatible client and server
    Transport
    TLS over TCP, plus DTLS over UDP for data
    Looks like
    HTTPS to one server, plus DTLS on UDP
    In Veli
    Not supported
  • MASQUE

    What it is
    IETF standards: UDP and IP tunnels inside HTTP
    Transport
    HTTP/3 over QUIC; HTTP/2 over TCP as fallback
    Looks like
    HTTP/3 to the provider's servers
    In Veli
    Not supported
  • TrustTunnel

    What it is
    VPN protocol: TCP, UDP and ICMP over HTTP/2 or HTTP/3
    Transport
    HTTP/2 over TLS (TCP) or HTTP/3 over QUIC (UDP)
    Looks like
    HTTPS or HTTP/3 to a website; Chrome-like ClientHello by default
    In Veli
    Not supported

Proxy protocols and VPN protocols: the difference

A VPN protocol carries IP packets. WireGuard, OpenVPN and IKEv2 give the system a virtual network adapter, and whatever an app sends goes into the tunnel as packets. What enters the tunnel is decided by IP address: in WireGuard that is the AllowedIPs line of the config.

A proxy protocol carries connections. VLESS, VMess, Trojan, Shadowsocks, Hysteria2 and TUIC open a stream for each connection and put its destination, an IP address or a domain name plus a port, in the first bytes. The server then connects there on the app's behalf. Because the client knows the domain, proxy cores such as Xray, sing-box and Mihomo can route by site and by app, not only by IP.

On a phone or a computer the line is blurred: a proxy client switches on a TUN adapter and catches all traffic too, which is why apps call both kinds a VPN. The difference shows elsewhere. Operating systems and routers often speak VPN protocols out of the box (IKEv2 in Windows, macOS, iOS and Android, WireGuard in the Linux kernel), while proxy protocols need a core like Xray or sing-box and usually arrive as a single link: vless://, trojan://, ss://.

Transport and disguise layers: TLS, Reality, QUIC

The name in a link often names only the inner layer. VLESS is a short request header with no encryption of its own by default (encryption is none); privacy and disguise come from the layer underneath. The same VLESS can run inside TLS, inside Reality or inside HTTP requests, and to a network each of these looks different. These are the layers you meet:

  • TLS with your own domain. Trojan, VLESS and VMess can sit inside ordinary TLS with the server's own certificate, and an observer sees HTTPS to that domain. A Trojan server hands anything without the right password to a fallback, by default a local web server, so a prober gets a web page.
  • Reality. The server borrows the TLS handshake of somebody else's site, so you need no domain or certificate. A client that fails authentication is passed through to that real site, and a prober ends up talking to the site itself.
  • WebSocket, gRPC, XHTTP. VLESS, VMess and Trojan can also ride inside HTTP requests, which a CDN forwards like any web traffic. XHTTP can split upload and download into separate requests; Cloudflare passes gRPC only after its gRPC switch is turned on.
  • QUIC. Hysteria2 and TUIC run on QUIC over UDP, the transport of HTTP/3. Hysteria2 logs in with an HTTP/3 request; anything else gets a web server's answer, 404 Not Found by default or a site you set under masquerade.
  • Full encryption from the first byte. Shadowsocks, and VMess without TLS, send bytes that look random from the start. Having nothing readable is a sign in itself: from November 2021 the Great Firewall blocked such connections to popular hosting ranges by first-packet entropy and the share of printable bytes (Wu et al., USENIX Security 2023).
  • A real handshake, then your data. ShadowTLS performs a genuine TLS handshake with a chosen site and then carries an inner protocol such as Shadowsocks. AnyTLS and NaiveProxy pad their first packets so that a TLS handshake carried inside TLS does not give itself away by its sizes.
  • Changed packets. AmneziaWG is WireGuard with junk packets before the handshake, random prefixes on messages and changed header values. Set all of them to zero and it is plain WireGuard again.

Speed, packet loss and UDP

On a clean line the distance to the server and the server's load matter more than the protocol. WireGuard adds little: a 16-byte header and a 16-byte tag per packet over UDP, and on Linux it runs in the kernel. AmneziaWG keeps the same encryption and adds junk packets at the start of a session and, if set, a few random bytes per packet. VLESS, Trojan, VMess and Shadowsocks over TCP come close on a good link. OpenVPN traditionally encrypts in user space and costs more CPU, which shows on routers; since version 2.6 it can hand the data channel to a kernel driver (DCO).

Packet loss changes the picture. Over TCP, a lost packet stops everything behind it on that connection until it is resent. A proxy that packs many app connections into one TCP connection (Xray Mux, sing-box multiplex, AnyTLS) stalls them all together. OpenVPN in TCP mode runs the apps' own TCP inside the tunnel's TCP, and its manual says it is designed for UDP and copes worse with unreliable or congested links over TCP.

Hysteria2 and TUIC run on QUIC. Each connection gets its own QUIC stream, so a lost packet delays only that stream. When the client config sets a bandwidth, Hysteria2 uses its own Brutal congestion control, which holds that rate instead of slowing down at each loss; without it, Hysteria2 uses BBR.

UDP is also the weak spot. Some networks drop UDP or cap its rate, and then Hysteria2, TUIC, WireGuard and AmneziaWG suffer first while VLESS, Trojan or NaiveProxy over TCP keep working. QUIC gets filtered too: from April 2024 the Great Firewall decrypted QUIC Initial packets and blocked connections by server name (Zohaib et al., USENIX Security 2025). One profile over TCP and one over UDP cover both cases.

Why a protocol stops working

When a profile that worked yesterday fails today, the cause is usually one of these. Where a study describes the method, it is named in the row.

  • WireGuard or OpenVPN fails, the rest of the internet works

    Likely causeThe handshake was recognized. WireGuard's first messages have fixed types and sizes (148 and 92 bytes); a study at a million-user ISP identified over 85% of OpenVPN flows (USENIX Security 2022)

    What to tryAmneziaWG with masking on, or a protocol that looks like HTTPS

  • A Shadowsocks server works for a while, then its port goes dead

    Likely causeActive probing: the filter connects to the server itself, replays recorded data and watches the reply (IMC 2020)

    What to tryShadowsocks 2022, which rejects replays, or a protocol that shows probes a real website: Reality, Trojan, NaiveProxy

  • Shadowsocks or VMess without TLS fails on a strict network, TLS profiles work

    Likely causeFully encrypted traffic caught by first-packet entropy (USENIX Security 2023)

    What to tryThe same protocol over TLS, or one inside a real TLS handshake

  • A TLS proxy gets cut after a while, with no probing seen

    Likely causeTLS-in-TLS: the inner TLS handshake shows through by its sizes and round trips (USENIX Security 2024)

    What to tryVLESS with the Vision flow, AnyTLS or NaiveProxy, which pad the inner handshake; the 2024 study found padding alone limited

  • Everything over UDP is slow or silent, TCP works

    Likely causeThe network drops or rate-limits UDP

    What to tryA profile over TCP: VLESS, Trojan, NaiveProxy or OpenVPN in TCP mode

  • Hysteria2 or TUIC fails only with some server names

    Likely causeQUIC filtered by the server name in its first packet (USENIX Security 2025)

    What to tryHysteria2 with Salamander obfuscation, which scrambles every packet into random-looking bytes

  • VMess fails while other protocols on the same server work

    Likely causeThe clocks differ: VMess rejects a client whose time is more than 120 seconds off

    What to tryTurn on network time sync on the device and the server

  • Trojan, Hysteria2 or VLESS over TLS fails with a certificate error

    Likely causeThe certificate expired or does not match the name in the link

    What to tryRenew it; Reality needs no certificate of its own

Questions

Which is faster: VLESS or WireGuard?

On a clean network WireGuard has less overhead: it runs over UDP, adds a 16-byte header and a 16-byte tag to each packet and works in the kernel on Linux. VLESS runs over TCP inside TLS or Reality and comes close on a good link, but a lost packet stalls its TCP connection. Where WireGuard is recognized and cut, speed stops being the question.

What is the difference between AmneziaWG and WireGuard?

The keys, encryption and speed class are the same. AmneziaWG adds junk packets before the handshake, random prefixes to messages and changed header values, so signatures built on WireGuard's fixed sizes and types miss it; with all of that set to zero it is plain WireGuard. Amnezia's own docs say this makes detection harder, not impossible.

Is Shadowsocks a VPN or a proxy?

A proxy: its documentation describes it as a secure proxy based on SOCKS5, and each connection starts with the address it is going to. Apps call it a VPN because the client can catch all traffic with a TUN adapter and send it through the proxy.

Should a VPN use TCP or UDP?

UDP where it gets through. WireGuard works only over UDP, and OpenVPN uses UDP on port 1194 by default because it is designed for it. TCP is the fallback for networks that block UDP: OpenVPN can switch to it, and proxy protocols such as VLESS and Trojan run over TCP to begin with.

Which VPN protocols are outdated or unsafe?

PPTP: its usual MS-CHAPv2 login can be cracked, and Microsoft's advisory 2743314 (2012) recommends L2TP/IPsec, IKEv2 or SSTP instead. L2TP alone has no encryption and relies on IPsec. Shadowsocks stream ciphers are called broken by the project itself; use AEAD or the 2022 ciphers.

Can a VPN protocol be detected?

Yes, and the methods are published: fully encrypted protocols by entropy (2023), OpenVPN by its handshake (2022), TLS inside TLS by packet sizes (2024), QUIC by server name (2025). Protocols that show a real website to probes, such as VLESS with Reality and NaiveProxy, remove the easiest signals, but traffic volume and timing remain.