I have HostA behind a firewall establishing a reverse ssh tunnel to HostB. I want to setup a proxy on HostB that will forward the connection through the reverse ssh tunnel and out through HostA.
I tried ssh -D 5678 user@localhost -p 1234 yet firefox times out when trying to connect to HostB on port 5678 as a socks proxy. 1234 is the port on HostB where the reverse proxy is setup to HostA. Does anyone have advice on setting this up?
The reverse proxy is setup on HostA as ssh -R 1234:localhost:22 user@HostB