I have a scenario where I need to open up a port for a server behind an ISP that appears to be blocking traffic. In this case I have a dedicated server remotely that I can
ssh into and use whatever ports I wish. My desire is to ssh in from the server behind this firewall to the dedicated server and then to open a port generally for this other app's client to access at will.
I had thought it was as simple as, from the server behind the ISP firewall:
ssh username@remote_server_ip -R remote_server_ip:12345:localhost:12345
And then to simply connect with the client software to
remoteserver:12345 as the server setting.
Additionally, I have
sshd_config set to
GatewayPorts clientspecified and when I check
netstat -tln | grep 12345 on the remote_server, I'm seeing:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 remote_server_ip:12345 0.0.0.0:* LISTEN
Unfortunately this is seemingly not working. I am suspecting that I am getting something off on the ssh arguments. Any ideas?