Proxies and smarter firewalls
SOCKS proxy
A circuit-level gateway: it opens any TCP connection a client asks for and relays the bytes unread.
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.
Read next
- Forward proxy A server that makes web requests on its users' behalf, and so can allow or refuse them by name and URL.
- Firewall Rules deciding, packet by packet, what may reach or cross a device.
- TCP Reliable, ordered byte streams between programs: handshake, acknowledgements, retransmission.
- Pivoting Using a host you already control as a relay to reach a network that has no route from where you stand — the compromised box bridges the two segments.
- Network discovery Mapping what a foothold can reach before acting on it — which segments, which hosts, which one box bridges to a network you cannot touch directly.
- Lateral movement Moving from a host you already own onto another host inside the network — usually with reused or stolen valid credentials, not a fresh exploit.
- Onion routing Sending traffic through three relays, wrapped in one layer of encryption per relay, so no single relay knows both who is asking and what for.