vx / connectbot

Enhanced version of the popular ConnectBot SSH and telnet client
http://connectbot.vx.sk
Apache License 2.0
193 stars 62 forks source link

Allow ConnectBot to use a SOCKS proxy to make connections #103

Closed dido closed 10 years ago

dido commented 10 years ago

I've been experimenting with Tor lately, and have turned one of my home machines into an .onion site, and have permitted SSH as a service. I can manage to connect to it using the OpenSSH client on desktop Linux by setting it up to use Tor as a SOCKS proxy, and while it's slow it's usable enough. However, I'd like to be able to do the same thing on Android, and while Orbot provides a SOCKS proxy on localhost:9050, how do I get ConnectBot to use it? The transparent proxying provided by Orbot doesn't work: Connectbot still tries to do DNS resolution of the .onion site which obviously won't work. I've tried a few other third-party proxifying apps like ProxyDroid and Shadowsocks but they don't seem to forward the DNS queries ConnectBot makes into the proxy, and so they don't work.

Besides my own personal experiments with Tor and Darknets, I imagine one can use it to do other neat things as well. Since ConnectBot can already function as a SOCKS server, I imagine that it might not be that hard to give it SOCKS client capability as well.

dido commented 10 years ago

I created a pull request that seems to work to solve this issue.