SuppSandroB / sandrop

Automatically exported from code.google.com/p/sandrop
226 stars 62 forks source link

Drony: do not work with socks5 wall breaker proxy while Firefox mobile can #134

Open luweitest opened 6 years ago

luweitest commented 6 years ago

I have a GFW breaker proxy in computer: 192.168.1.109:8080 (http) or 1080(socks5) On a non-root android phone 192.168.1.100, in Firefox mobile, set proxy using about:config and succeed. Then in Drony using normal settings, GFW is not broken. But Drony works with normal proxy. I suspect that it may be related to remote DNS. Drony do not have an option like network.proxy.socks_remote_dns in Firefox mobile.

SuppSandroB commented 6 years ago

Drony has options for dns. For example you can use dnscrypt. Or you can specify where dns requests are send with tcp/ip address.

luweitest commented 6 years ago

On 2018-4-7 23:29, SuppSandroB wrote:

Drony has options for dns. For example you can use dnscrypt.

Tried dnscrypt with no success.

Or you can specify where dns requests are send with tcp/ip address.

Is it "DNS cache settings"? The default listening port of it is 8054 instead of 53, so I thought it is not normal DNS setting.

What is the equivalent setting to remote DNS with socks5 proxy?

And in the situation of http proxy, normally dns is not required because the whole http request is send to the proxy by browser. Does Drony work like that?

-- Regards, Lu Wei PGP key ID: 0x A12F EF75 92CC E1EA

luweitest commented 6 years ago

Setting "DNS cache settings" to 8.8.8.8:53, not work. Double checked plain HTTP, it now works. So only Socks5 do not work.

brookhong commented 6 years ago

Same issue. Drony works well with plain proxy, but not with socks5.

SuppSandroB commented 6 years ago

will look at it

SuppSandroB commented 5 years ago

Drony should work with SOCK5 proxy. But not all features of SOCKS5 are supported. Can you send example of configuration that is not working?

mut4nt commented 4 years ago

Hello,

Thank you for your great job on drony.

I have the same exact problem and I also suspected remote dns option. I also tried on firefox mobile first as it is the common way to test socks5 from its official website. Just the same exact thought process.

Seems the remote dns is the issue because when the socks5 proxy receive request from another client (like Firefox) no Ip address is directly involved. The proxy will do the dns job himself. But when the request come from drony ip address is shown. That means drony resolves the dns locally/himself. I just suggest to add an option just as Firefox does : "remote dns" that let the socks5 proxy do it itself.

Will put some time on it if possible because I really want this feature. My proxy has trouble handling ip address directly.

Best regards,

brookhong commented 3 years ago

@SuppSandroB

I agree with @mut4nt, it looks like drony always try to resolve DNS locally by itself. But my socks5 proxy is set up with ssh, and it can only be used as

curl --socks5-hostname <proxy_ip>:1080 https://www.google.com

it does not work with

curl --socks5 <proxy_ip>:1080 https://www.google.com