Compare

Side-by-side on the decisions that recur: TCP vs UDP, HTTP/2 vs HTTP/3, flow vs congestion control, L4 vs L7, forward vs reverse proxy, IPv4 vs IPv6 — with when to choose each.

Forward proxyReverse proxy
Sits in front ofClients — it makes requests on their behalfServers — it receives requests on their behalf
Who knows about itThe client is configured to use it; the server sees the proxy’s IPThe client does not know; it thinks the proxy is the server
PurposeEgress control, caching, anonymity, policyTLS termination, load balancing, caching, routing, WAF
Typical softwareSquid, corporate egress gateway, HTTP_PROXY settingnginx, HAProxy, Envoy, cloud load balancers
Where the client IP is lostServer sees the proxy IP by designBackend sees the proxy IP unless X-Forwarded-For is added
Status codes it generates407 Proxy Authentication Required502, 503, 504 when the upstream misbehaves
Choose this whenYou control the clients and want to shape or inspect what leaves your network.You control the servers and want one entry point that hides, protects and distributes them.