How can I set up SSH tunneling to access a webserver behind a firewall?

Christopher Bottoms picture Christopher Bottoms · Nov 25, 2009 · Viewed 8.6k times · Source

How would I access a webserver behind a firewall? I'm developing an application for this webserver which is not yet open to the public.

Someone walked me through this before, so I know it can be done. However, it has been about four months and I haven't been able to do it again.

I'm using Putty to connect to the remote machine. From that machine I can open the site http://dev.server.address:83 using Firefox. However, I want to be able to open http://localhost:80 on my machine to see the same page.

I'm using the server address and port 83 for the "source port" I'm using localhost:80 for the "destination port"

Answer

intgr picture intgr · Nov 25, 2009

You need to enter "80" into Source port and dev.server.address:83 to Destination.

[And don't forget to click the "Add" button before you leave the configuration screen. If you don't click that, PuTTY doesn't actually create a tunnel. I fell for that gotcha quite a few times myself]