Socks5

SOCKS5 is a general-purpose proxy protocol standardized in RFC 1928. Unlike application-aware HTTP proxies, it operates at a lower level: it can relay any TCP connection and natively supports UDP, which is why proxy tools so often use it as their final hop.

Why SOCKS5 Matters

  • Application agnostic: HTTP, SMTP, FTP and other protocols can all be forwarded.
  • UDP relay: The UDP ASSOCIATE command enables forwarding of UDP datagrams.
  • Flexible auth: Negotiation supports no-auth or username/password authentication.
  • Ubiquitous: Nearly every Clash/mihomo-based client speaks SOCKS5 for local listeners.

SOCKS5 in FlClash

FlClash can use SOCKS5 either as a node or as the local listening interface. A SOCKS5 node is configured with:

  • server: Server address
  • port: Server port
  • username: Username (when authentication is enabled)
  • password: Password (when authentication is enabled)
  • udp: Enable UDP forwarding (true/false)