Remote port-forwarding with GatewayPorts
Posted: Mon 05 Oct 2020 13:00
Hi,
I can get this to work until I want to turn GatewayPorts on.
If I setup an SSHClient with Channel and set the Remote property to True I get the reverse tunnel.
To see what ports the SSHServer is listening on I can see;
sshd 7599 adminuser 10u IPv4 207296262 0t0 TCP 127.0.0.1:10075 (LISTEN)
When I set GatewayPorts to True nothing changes and I cannot connect to the forwarded ports from a remote host.
Checking what the server is listening on I see;
sshd 7599 adminuser 10u IPv4 207296262 0t0 TCP 127.0.0.1:10075 (LISTEN)
If remote hosts were able to use these ports should I not be seeing the following?
sshd 7599 adminuser 10u IPv4 207296262 0t0 TCP *:10075 (LISTEN)
How do I allow remote hosts to use the forwarded ports?
I can get this to work until I want to turn GatewayPorts on.
If I setup an SSHClient with Channel and set the Remote property to True I get the reverse tunnel.
To see what ports the SSHServer is listening on I can see;
sshd 7599 adminuser 10u IPv4 207296262 0t0 TCP 127.0.0.1:10075 (LISTEN)
When I set GatewayPorts to True nothing changes and I cannot connect to the forwarded ports from a remote host.
Checking what the server is listening on I see;
sshd 7599 adminuser 10u IPv4 207296262 0t0 TCP 127.0.0.1:10075 (LISTEN)
If remote hosts were able to use these ports should I not be seeing the following?
sshd 7599 adminuser 10u IPv4 207296262 0t0 TCP *:10075 (LISTEN)
How do I allow remote hosts to use the forwarded ports?