Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Why does socks5 require to relay udp over udp?


Asked by Houston Dudley on Dec 13, 2021 FAQ



The SOCKS5 protocol, described by RFC1928 provides support for UDP. To summarize, a client wishing to relay UDP packets through a SOCKS5 server must, at least: send datagrams (UDP) to that address, encapsulated with some headers (cf section 7 ).
Moreover,
When a client wants to relay UDP traffic over the SOCKS5 proxy, the client makes a UDP associate request over the TCP. SOCKS5 server then returns an available UDP port to the client to send UDP packages to. Client then starts sending the UDP packages that needs to be relayed to the new UDP port that is available on SOCKS5 server.
Also Know, The SOCKS5 handshake must be over a TCP control connection. Your server may need to keep one open TCP connection per client, but each client does not need many TCP connections open - one TCP connection can handle any number of UDP associate commands.
Just so,
Technically – SOCKS5 uses the proxy servers to form TCP or UDP connections to arbitrary IP addresses, providing a mode for transportation of UDP packets. NordVPN SOCKS5 Proxy sends requests through the NordVPN DNS servers.
Subsequently,
SOCKS is an internet protocol that routes packets between a server and a client using a proxy server. Your traffic is routed through a proxy server that generates an arbitrary IP address before you reach your destination.