Adds a reverse proxy mode whereby clients connect directly to the
reverse proxy, and the proxy forwards the connection to a target host
and port specified on the command line or config. For example:
The reverse proxy mode makes it trivial to test a client that always
connects to a specific server port, as it doesn't require socks or
transparent proxy.
That said, the mode has some limitations. It cannot be used in cases
where the client needs to connect to multiple servers/ports. Also, it
doesn't rewrite HTTP headers, e.g. Host, so the values may be incorrect
when received by the real server, and when responses are received by the
client.
Adds a reverse proxy mode whereby clients connect directly to the reverse proxy, and the proxy forwards the connection to a target host and port specified on the command line or config. For example:
The reverse proxy mode makes it trivial to test a client that always connects to a specific server port, as it doesn't require socks or transparent proxy.
That said, the mode has some limitations. It cannot be used in cases where the client needs to connect to multiple servers/ports. Also, it doesn't rewrite HTTP headers, e.g. Host, so the values may be incorrect when received by the real server, and when responses are received by the client.