How SOCKS5 works
SOCKS5 is a general-purpose proxy that forwards any TCP (or UDP) connection, not just web traffic - used by SSH tunnels and many apps.
Layer: Session (OSI layer 5) · Port: 1080 · Transport: TCP · Format: Binary handshake · Standard: RFC 1928
SOCKS5 packet flow
- SOCKS5 Client → Proxy: Greeting: methods [no-auth, user/pass]
- SOCKS5 Proxy → Client: Method: user/pass
- SOCKS5 Client → Proxy: CONNECT www.example.com:443
- SOCKS5 Proxy → Client: Succeeded
- TCP Client → Web Server: Data relayed through the proxy
Other protocols: HTTPS · SSH · TLS/SSL · DNSSEC · DNS over HTTPS · Wi-Fi · WPA3 · RADIUS · Captive Portal · HTTP Proxy · Reverse Proxy · WireGuard · IPsec