SSH Tunnel to Home Network – Access Router Web Interface

macossshssh-tunnel

I'm trying to use an ssh tunnel from a remote location to connect to my home network and access the router web interface.

I have SSH access to the home network, and I can connect to the gateway machine "Lounge". (e.g. 192.168.1.100)

What would I need to do to proxy web requests to the router (192.168.1.1) on the home network, via "Lounge", so that I can view it from the remote location?

If it makes a difference, the "Lounge" machine is running OS X.

I want an ssh / command-line only solution to this, thanks.

Best Answer

Download putty if you don't already have it, the format you need for this is:

putty -ssh username@publicip -pw password -L localport:privateip:destinationport

Here is what you would use to get to 192.168.1.1 remotely through SSH:

putty -ssh username@publicip -pw password -L 8080:192.168.1.1:80

You could then open up a web browser to 127.0.0.1:8080 on the computer you created the tunnel with and up would pop the router interface.

Related Question