I have a server running NGINX on local port 80 within my corporate NAT. From any remote box, I am able to setup a reverse SSH connection and connect to the firewalled box on port 22.
Here's what I've done so far:
user@corp:~$ ssh -R 4000:localhost:22 [email protected]
and from the remote box,
me@remote:~$ ssh user@localhost -p 4000
Now this is fine and dandy, and works perfectly fine. How can I map arbitrary services on arbitrary ports on the corporate box to my remote box? Trying port 80 instead of 22 doesn't appear to work.
The corp network has typical mail and HTTP/S ports open.
My remote box runs Debian 6 and the corporate box runs Ubuntu 12.04 LTS.