SOCKS5 Inbound¶
The socks inbound implements SOCKS5 (RFC 1928) with TCP CONNECT, UDP UDP_ASSOCIATE, and optional username/password authentication (RFC 1929).
- Platform / Feature: All platforms, built-in.
- Authentication: Uses top-level
authentication(username:passwordentries). - Type-specific fields:
udp(bool, optional, defaulttrue): Accepted in config; at runtimeUDP_ASSOCIATEis always enabled on the SOCKS5 TCP handshake (no static UDP bind port is opened separately).
Routing & Testing¶
Match SOCKS5 traffic in rules using IN-TYPE,SOCKS,<TARGET> (or SOCKS5):
Verify with curl: