Concepts / Proxies and smarter firewalls

Proxies and smarter firewalls

SOCKS proxy

Also called SOCKS5, Dante, circuit-level gateway, socks5h

A circuit-level gateway: it opens any TCP connection a client asks for and relays the bytes unread.

SOCKS relays any connection, unread
SOCKS relays any connection, unread

The proxy decides by who asks and where to, then copies bytes both ways. It carries any protocol and can judge none of them.

A SOCKS proxy opens any TCP connection a client asks for and relays the bytes unread. The client names a host and port; the proxy connects and copies data both ways. It decides by who asks and where to, never by content, so it carries any protocol (SSH, chat, HTTP) and can judge none. With socks5h (curl's --socks5-hostname) the proxy also does the name lookup.

See it on real machines

Read next

Learn it on real machines.

Every lab is a small network of real Linux machines in your browser. Sign in with Google or email to start.

Start this lab