I have my router connected to the Internet. From the router, I have an ssh tunnel setup like this:

ssh -f tunnelserver.net -L 2000:proxy:8888 -N

This opens the port 2000 on localhost from my router. Now I want this port to be accessible from within my LAN, but it is closed. How can I open it?

I have GatewayPorts yes in /etc/ssh/sshd_config, if that matters.

link|improve this question
feedback

1 Answer

up vote 2 down vote accepted

You need to specify the interface that ssh should listen to. Something like:

ssh -f tunnelserver.net -L 192.168.1.1:2000:proxy:8888 -N

or change 192.168.1.1 with the IP assigned on your router's LAN interface.

link|improve this answer
That's brilliant! Thanks alot! – Johan Sep 11 '11 at 10:20
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.