AdguardTeam / AdguardForAndroid

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

Proxy Server's "Use FakeDNS" Interrupts Internet Connection of Bypass Applications #5355

Open Eollone opened 3 weeks ago

Eollone commented 3 weeks ago

Please answer the following questions for yourself before submitting an issue

AdGuard version

v4.4.1

Environment

HTTPS filtering

Root access

Integration with AdGuard VPN

Routing mode

Local VPN

Ad Blocking

AdGuard Base filter

Privacy

No response

Social

No response

Annoyances

No response

Security

No response

Language-specific

No response

Other

AdGuard DNS filter

Which DNS server do you use?

AdGuard DNS

DNS protocol

DNS-over-HTTPS

Custom DNS

No response

What Stealth Mode options do you have enabled?

No response

Issue Details

Steps to reproduce:

  1. Set up a Proxy Server with “Filter DNS requests”, "Route UDP through SOCKS5", “Use FakeDNS” enabled.
  2. Disable an APP's "Route app through proxy".
  3. This App will always get an FakeIP and therefore will not be able to connect to the Internet. (This issue can be confirmed using Wireshark)

Expected Behavior

Regardless of whether "Use FakeDNS " is enabled or disabled, APPs that disable "Route app through proxy" can obtain the real IP address through the DNS server set by Adguard and connect to the Internet as expected. And only the APPs that enable "Route app through proxy" will be processed by the FakeDNS strategy.

Actual Behavior

After enabling "Use FakeDNS ", APPs that disable "Route app through proxy" will not be able to connect to the Internet. After disabling "Use FakeDNS ", APPs that disable "Route app through proxy" will obtain the real IP addresses through the DNS server set by Adguard and will be able to connect to the Internet.

Screenshots

Screenshot 1

Additional Information

No response

Versty commented 1 week ago

@Eollone Thank you for reporting! This issue reproduces on our side as well, will be improved in future versions.