2

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.

1 Answer 1

2

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.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .