leofarage / connectbot

Automatically exported from code.google.com/p/connectbot
Apache License 2.0
0 stars 0 forks source link

port forwarding does not work in remote mode #209

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
23:39 < christophe-marie> Hi, the port forwarding does not work for me in
remote. However, when I test it from my machine on the same port, it works.
23:40 < christophe-marie> I want to reverse tunnel connections
23:40 < christophe-marie> that is : I want my phone to initiate a
connection where my pc listen to 8081 and forwards to my cellphone
23:41 < christophe-marie> so I go to the port forward options
23:42 < christophe-marie> I choose "remote", source port 8081, destination
localhost:22
23:43 < christophe-marie> so it says "remote port 8081 to localhost:22"
23:43 < christophe-marie> Then the port forwarding cannot be enabled
23:45 < christophe-marie> saying : problem creating port forward, maybe
you're using ports under 1024 or port is already used?
23:45 < christophe-marie> The remote port is 8081, which is > 1024
23:46 < christophe-marie> furthermore, I checked : using another pc, I
could do forwarding from this port.
23:47 < christophe-marie> (initiating a connection with the right command
line, I could then connect using another ssh session to the port 8081)
23:47 < christophe-marie> now locally
23:47 < christophe-marie> on the android
23:47 < christophe-marie> I tried with port 2222
23:47 < christophe-marie> since I have a ssh server which listen to 2222 on
the phone
23:48 < christophe-marie> but it does not work either
23:51 < christophe-marie> trying with random ports for both source and
destination, (ports that are sure they are not used on both sides, and >
1024) I 
                          discovered none of these where working for me in
"remote"
23:51 <@kroot> which version do you have?
23:51 < christophe-marie> how do I know that?
23:51 <@kroot> menu->help from the host list..
23:52 < christophe-marie> well, I'm on the host list and don't see anything
like "version" :$
23:53 < christophe-marie> sorry misread you
23:53 < christophe-marie> 1.5.5
23:53 < christophe-marie> r409 2009.09.06
23:55 <@kroot> It might just be a display bug. E.g., it's already enabled.
23:55 < christophe-marie> Ah, I did not even tried. Good idea, I will check
that
23:55 <@kroot> You can check with netstat -an | grep 8081
23:56 < christophe-marie> nothing
23:57 < christophe-marie> empty output
Day changed to 24 Oct 2009
00:00 < christophe-marie> with "local", no error.
00:02 < christophe-marie> I just forwarded the 2222 port of the phone to
the 8081 port of the pc, no pb. But I want to do the reverse
00:05 < christophe-marie> Ah, no. I forwarded the 2221 port of the phone to
the 8081 port of the pc. With 2222 that does not work
00:20 < christophe-marie> I solved the issue : I log in a local connection
on the phone, then I issue ssh -N -R 21547:localhost:22 user@my-server from
the 
                          command line
00:20 < christophe-marie> since dropbear is installed on the phone, this works
00:28 < christophe-marie> Ok, so if it works with the dropbear ssh client,
I guess it's a connectbot issue.
00:29 < christophe-marie> The same exact thing is done : ssh -N -R
8081:localhost:2222 user@server.org
00:31 < christophe-marie> and in connectbot this is opening a connection to
user@server.org, add a port forwarding, type "remote", source 8081,
destination 
                          localhost:2222
00:33 < christophe-marie> I'll file a bug report, if I find some place to do it
00:34 < TauPan> it's linked from the site

Original issue reported on code.google.com by chm.duquesne on 23 Oct 2009 at 10:35

GoogleCodeExporter commented 8 years ago
I just committed a fix in r419 to correctly track when remote port forwards are
enabled. They did work before, it just didn't display it correctly.

Original comment by kenny@the-b.org on 24 Oct 2009 at 10:17