Transport Security Reference

Transport security protects and/or authenticates the outer connection. It does not contain the inner proxy protocol’s destination request, UUID, or password, and it must not be treated as a substitute for that protocol.

The distinct responsibilities are documented under Proxy Protocol Reference (inner proxy semantics) and Transport Reference (carrying proxy bytes).

Security Mechanisms

MechanismSecurity-layer responsibilityDocumentation
TLSEncrypted channel and certificate-based peer authenticationDeployment Security and Threat Model
REALITYTLS-like outer handshake, key/short-ID validation, and target/fallback behaviorREALITY
QUIC TLSHandshake and channel security integrated with QUICHysteria 2, TUIC

Protocol-owned cryptography is separate: Shadowsocks and VMess define encrypted proxy records, and VLESS can use VLESS Encryption. Consult their protocol chapters for those semantics. Security mechanisms and transport wrappers are not freely interchangeable; the actual peer/core determines allowed combinations.

Layer Boundaries

In an independently layered TCP-based configuration, the security handshake occurs before the protected transport can deliver the inner proxy stream:

TCP connection
    → TLS / REALITY authentication (if configured)
    → transport session / framing (RAW, XHTTP, gRPC, ...)
    → proxy-protocol authentication and target request

This sequence is conceptual: individual transports and QUIC-based protocols have different negotiation requirements. Success at the security layer does not mean the HTTP transport route or the proxy user was accepted.

Security-page configuration owns certificates, SNI and verification, REALITY key material, short IDs, fingerprints and fallback behavior. Transport-page configuration owns HTTP/stream framing, while protocol-page configuration owns proxy identity and destination handling.

Verification and Diagnostics

Verify the selected core and both endpoint directions in Implementation Status and the interoperability tests. For failed connections, distinguish TCP/UDP reachability, security-handshake rejection, transport setup failure, and inner protocol authentication or dispatch errors. See End-to-End Troubleshooting.