Reverse SSH Tunnel possible? - WeOnlyDo Discussion board

Reverse SSH Tunnel possible? (wodSSHTunnel)

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

Hello, thank you for your answer, i have tried

wodSSHTunnel1.Channels.Add(wodSSHTunnelCOMLib.ForwardTypesEnum.RemoteListen, "127.0.0.1", 80, "0.0.0.0",81);

but i am not able to access the remote from outside, only 127.0.0.1 is able to use that port.

[root@localhost ~]# telnet 192.168.1.180 81
Trying 192.168.1.180...
telnet: connect to address 192.168.1.180: Connection refused
[root@localhost ~]# telnet 127.0.0.1 81
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.

i have turned off the firewall and iptables, no change. I even tested with

private void wodSSHTunnel1_Connected()
{
wodSSHTunnel1.Channels.Add(wodSSHTunnelCOMLib.ForwardTypesEnum.LocalListen, "0.0.0.0", 0);
wodSSHTunnel1.Channels.Add(wodSSHTunnelCOMLib.ForwardTypesEnum.RemoteListen, "0.0.0.0", 80, "0.0.0.0",81);
wodSSHTunnel1.Channels.StartAll();
}

same result.

Can you help me?

Henry


Complete thread: