On Wed, Jan 18, 2006 at 12:54:07PM +0000, Chris Green wrote:
On Wed, Jan 18, 2006 at 12:28:51PM -0000, Stuart Fox wrote:
What you could do is this
Open a port to the outside work on your router, say port 22222 and map it back to a host on your home lan say 192.168.2.100 port 22222. (Make sure nothing actually listens on 192.168.2.100 port 22222. Then create an ssh tunnel from work to home that listens on 192.168.2.100 port 22222 and forward to your routers internal ip address, like this
ssh router.external.ip -L 22222:router.internal.ip:80
once the tunnel is up you *should* be able to point your browser at http://router.external.ip:22222 and see the router from the inside
Aha, yes, that looks like a way to do it. I've used ssh tunnels for other purposes (seeing an IMAP server which was limited to local connections only from the 'outside') so it's not totally new territory, thanks for the idea.
Yeehaa!! It works.
All it needed was the following command on the machine at work where I run Firefox:- ssh -l chris -x -L 22222:zyxel:80 84.45.228.40 cat -
Then I connected my browser to localhost:22222 and it all worked! Much, much faster than running Firefox on the home machine across an X connection.
So now you all know my home machine's address is 84.45.228.40 but it won't do you much good as access is only allowed from a few places. You're welcome to browse the web pages there though.