AdguardTeam / AdguardForAndroid

Open bug tracker for Android version of AdGuard.
https://adguard.com/
1.22k stars 86 forks source link

No network when using Automatic proxy with proxy server #5287

Closed TigerBeanst closed 1 month ago

TigerBeanst commented 2 months ago

Please answer the following questions for yourself before submitting an issue

AdGuard version

4.3.1

Environment

HTTPS filtering

Root access

Integration with AdGuard VPN

Routing mode

Automatic proxy

Ad Blocking

No response

Privacy

No response

Social

No response

Annoyances

No response

Security

No response

Language-specific

No response

Other

No response

Which DNS server do you use?

Custom DNS

DNS protocol

Regular

Custom DNS

127.0.0.1:1053

What Stealth Mode options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Open Clash For Android(cfa), and make it working with http/socks(0.0.0.0:7890) and dns server(127.0.0.1:1053). Make sure cfa didnot proxy on Android VPN
  2. In Adguard, do those thing that make https filtering works well, and set proxy server SOCKS 127.0.0.1:7890. Check connection success.
  3. Set DNS protection, add custom dns 127.0.0.1:1053.
  4. Disable routing traffic for cfa.
  5. Then in Routing mode, try Local VPN and Automatic Proxy.

Expected Behavior

No response

Actual Behavior

  1. If I use Local VPN, everything works. Open a website in browser, and check the cert, it is AdGuard Personal Intermediate.
  2. But if I switch to Automatic Proxy, I will lose my network. I can still see network log in Recent activity, but no app can surf the internet...

Screenshots

Screenshot 1

Additional Information

No response

Versty commented 1 month ago

@TigerBeanst Thank you for reporting! We would like to take a look at the logs from your device, please follow the steps below:

  1. Enable debug logging: Settings -> General -> Advanced -> Logging level -> Debug

  2. Reproduce the issue, then remember the exact time when it happened

  3. Collect logs: Settings -> General -> Advanced -> Export logs and system info

  4. Send this file to devteam@adguard.com:

    • mention the 5287 number in the subject
    • specify the exact time when the issue occurred
Versty commented 1 month ago

@TigerBeanst Have you sent the logs?

TigerBeanst commented 1 month ago

@TigerBeanst Have you sent the logs?

Sorry, I forget it...I find that maybe there is another problem. If I keep Adguard on foreground, it works ok (almost all the time). If it in under background, my device will lost internet after a little time. I have sent the screenrecorder and logs to you.

Well, I dont know why it sent 3 emails...

Versty commented 1 month ago

@TigerBeanst Got the logs from your device. Thank you! Has the initial issue resolved on your device? If so, please create a separate bug report for recently discovered problem. We will use the logs and screencast to investigate new issue further.

TigerBeanst commented 1 month ago

@TigerBeanst Got the logs from your device. Thank you! Has the intial issue resolved on your device? If so, please create a separate bug report for recently discovered problem. We will use the logs and screencast to investigate new issue further.

I think so... It maybe cause by Clash For Android, the test version, which can use Shizuku to proxy network by tun. I use the Shizuku mode. Although I didnot turn on TUN mode, just turn on http/socks5 proxy and dns, but maybe the Shizuku mode will still break Adguard's Automatic proxy.

I will create a new issue :)