Are you an LLM? You can read better optimized documentation at /en\wiki\Socks5.md for this page in Markdown format
SOCKS5
SOCKS5 is a general-purpose proxy protocol. An application connects to a SOCKS5 server, negotiates a destination, and the server relays the connection. SOCKS5 can support username/password authentication and UDP relay, depending on the server.
How it works
The client first negotiates an authentication method, then requests a connection to the target address. The proxy returns a status and relays traffic when the request succeeds.
Uses
Clash can expose a local SOCKS5 listener with socks-port or mixed-port. It can also use an upstream SOCKS5 server as a type: socks5 outbound. See inbound and outbound.
SOCKS5 does not encrypt traffic by itself. Use a trusted network path and end-to-end encryption where needed.
