How do a forward proxy and a reverse proxy differ, and what do they share?
A forward proxy stands in for the clients going out; a reverse proxy stands in for the servers being reached from outside. Both terminate the connection, and that termination is what makes inspection possible.
* One technique, two directions: the proxy answers in place of whichever side it represents. *
| Dimension | Forward proxy (web proxy) | Reverse proxy |
|---|---|---|
| Acts for | The clients inside | The server(s) behind it |
| Hides | Many clients behind one address | The servers' addresses |
| Traffic direction | Outbound web access | Inbound requests to published servers |
| Typical jobs | Content control, user authentication, logging | TLS termination, caching, load balancing |
| Security angle | Stops unwanted downloads into the company | Shields servers; base for an application-level firewall |
The common core: each one breaks the connection and speaks to both sides itself, seeing the traffic in clear text in between. They are one technique pointed in two directions — which is why a tool like mitmproxy (man-in-the-middle proxy) can be configured as either.
Tip: name the party the proxy represents: forward = forwards the client's requests out, reverse = answers in reverse, in the server's place.
Go deeper:
MDN — Proxy servers and tunneling — forward vs reverse proxies, plus the X-Forwarded-For headers proxies leave behind.