Reverse SSH Tunnel possible? - WeOnlyDo Discussion board

Reverse SSH Tunnel possible? (wodSSHTunnel)

by Henry Gronson, Tuesday, April 01, 2014, 22:05 (3889 days ago) @ wodSupport

Hello,

Thank you for your suggestion, but now after setting the GatewayPorts to clientspecified and even to yes, we still have a problem, on 127.0.0.1:81 we get our page

[root@localhost ~]# wget 127.0.0.1:81
--2014-03-31 15:48:13-- http://127.0.0.1:81/
Connecting to 127.0.0.1:81... connected.
HTTP request sent, awaiting response... 302 Found
Location: login.html [following]
--2014-03-31 15:48:13-- http://127.0.0.1:81/login.html
Reusing existing connection to 127.0.0.1:81.
HTTP request sent, awaiting response... 200 OK
Length: 2691 (2.6K) [text/html]
Saving to: “index.html.23”

100%[=============================================================>] 2,691 --.-K/s in 0s

2014-03-31 15:48:13 (443 MB/s) - “index.html.23” saved [2691/2691]


but when we try with the public ip we get

[root@localhost ~]# wget 192.168.1.101:81
--2014-03-31 15:48:16-- http://192.168.1.101:81/
Connecting to 192.168.1.101:81... connected.
HTTP request sent, awaiting response... ^C

And it just stay there.. I setup a Virtual Machine on my PC for the tests, i have Centos 6.5, no extra services are running, just basic install.

When i try to access 192.168.1.101:81 from my browser it wait for the page to load until i close the SSHtunnel.

netstat -anp | grep 81 output now:
tcp 0 0 0.0.0.0:81 0.0.0.0:* LISTEN 1718/sshd

Thanks

Henry


Complete thread: