xjasonlyu / tun2socks

tun2socks - powered by gVisor TCP/IP stack
https://github.com/xjasonlyu/tun2socks/wiki
GNU General Public License v3.0
2.85k stars 404 forks source link

[Bug] DNS issue on Android using SocksDroid #296

Closed deano2390 closed 7 months ago

deano2390 commented 9 months ago

Verify steps

Version

Unknown

What OS are you seeing the problem on?

Other

Description

Apologies if this is the wrong place for this but I couldn't see a better place to post it.

I am using the SocksDroid applications here: https://github.com/bndeff/socksdroid (It contains a precompiled version of tun2socks from about 4 years ago.)

I am simulating an environment where WWW access is blocked by blocking incoming UDP and TCP traffic to my device at the router. So by default, all connectivity is broken.

I then connect to my local SOCKS5 proxy on LAN using SocksDroid.

Most applications now work fine but some are failing.

If I specify a DNS server within my LAN then all applications work fine.

So it seems that some applications are routing their DNS queries over the proxy but some are not.

I tried running udpgw on the proxy server and configured tun2socks to use it but this did not resolve the issue (I verified UDP traffic is flowing in both directions).

I tried using a closed source proxy client instead (SuperProxy) and everything is working fine.

Any pointers here would be greatly appreciated.

CLI or Config

No response

Logs

No response

How to Reproduce

No response

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days