Proxy Protocol Reference
A proxy protocol defines how a client identifies itself, requests a target, and exchanges proxied TCP or UDP traffic with an endpoint. This chapter covers those messages, authentication rules, framing, and failure behavior.
Transport wrappers and transport security have their own references: Transport Reference and Transport Security Reference. They are not additional proxy protocols.
What Belongs to a Proxy Protocol?
A protocol reference owns:
- identity and proxy authentication (if the protocol defines them);
- destination address, command, and response semantics;
- TCP relay and UDP packet framing or association lifetime;
- protocol-level encryption, replay checks, and error handling;
- implementation evidence and compatibility limits for that protocol.
It does not define the HTTP path, gRPC service name, XHTTP session, TLS certificate, or REALITY short ID used by an outer layer. Refer to the relevant layer’s documentation instead of copying its configuration into every protocol page.
Protocols
| Protocol | Role | Protocol-specific characteristics |
|---|---|---|
| SOCKS5 | Local/application proxy | Method negotiation, destination commands, and UDP ASSOCIATE |
| HTTP Proxy | Local/application proxy | HTTP forwarding and CONNECT tunneling |
| Shadowsocks | Remote proxy | AEAD/AEAD-2022 encrypted TCP and UDP records |
| AnyTLS | Remote proxy | Password authentication, framed logical streams, and UDP-over-TCP |
| Trojan | Remote proxy | Shared-secret authentication and destination requests |
| Hysteria 2 | Remote proxy | QUIC-based sessions with its own TCP/UDP framing |
| TUIC | Remote proxy | QUIC-based connection authentication and TCP/UDP relay |
| VMess | Remote proxy | AEAD request authentication and encrypted body records |
| VLESS | Remote proxy | Identity and destination dispatch; optional VLESS Encryption |
| Dokodemo-door | Server forwarding inbound | Fixed-target or original-destination forwarding, without its own proxy authentication handshake |
Trojan wire format and Trojan traffic handling expand the Trojan protocol description without defining outer transport behavior.
Where the Layers Meet
For a stack that supports independently configurable layers, read it from the inner proxy messages outward:
Proxy protocol: identity + destination + proxied bytes
Transport method: delivery of those bytes (RAW / XHTTP / gRPC / ...)
Security layer: outer channel protection (TLS / REALITY / ...)
Network: TCP or UDP
This is a responsibility map, not a guarantee that any arbitrary combination works. See the Transport Reference for framing and HTTP wrappers, and the Transport Security Reference for outer-handshake responsibilities.
Some protocols intentionally bind these layers together:
- Hysteria 2 and TUIC build their sessions on QUIC, including QUIC TLS. QUIC-specific details remain in the respective protocol chapters.
- AnyTLS and baseline Trojan explicitly depend on TLS. Their protocol chapters describe that requirement without treating TLS configuration as a proxy command.
- Shadowsocks and VMess include protocol-owned cryptographic framing; VLESS may use VLESS Encryption. None of those automatically implies a particular outer transport.
Choosing a Protocol
For a local application entrypoint, start with SOCKS5 or HTTP Proxy. For remote encrypted proxy semantics, compare Shadowsocks, AnyTLS, Trojan, and VMess. For QUIC-based remote sessions, compare Hysteria 2 and TUIC.
For Xray-style layered configurations, begin with VLESS or VMess, then select a supported transport and security mechanism from their separate chapters. Never infer support for a combination merely because its constituent parts appear in the source.
Implementation and Troubleshooting
Read Implementation Status and Source Evidence and Test Evidence and Interoperability Matrix for component-specific availability and verification. Configuration parsing alone is not proof of runtime or cross-project compatibility.
When debugging, check network reachability, then any outer security handshake, then transport framing/session setup, and only then proxy authentication, destination dispatch, and TCP/UDP relay behavior. See End-to-End Troubleshooting for the full procedure.