AdguardTeam / AdguardForAndroid

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

DNS filtering not working with DNS over DoH #4468

Closed Dogoo9 closed 1 year ago

Dogoo9 commented 1 year ago

Please answer the following questions for yourself before submitting an issue.

AdGuard version

4.0.599

Environment

- OS: Android 13
- Device: Oneplus8T
- Firmware: F.15

Root access

What filters do you have enabled?

AdGuard Base filter, AdGuard Mobile Ads filter, AdGuard Chinese filter, AdGuard Dutch filter, AdGuard French filter, AdGuard German filter, AdGuard Japanese filter

What Stealth Mode options do you have enabled?

Hide your search queries, Send Do-Not-Track signals, Strip URLs of tracking parameters, Self-destruction of third-party cookies, Self-destruction of first-party cookies, Disable cache for third-party requests, Block the third-party Authorization header, Disable WebRTC

Issue Details

Steps to reproduce:

  1. Add any custom DNS over TLS or DNS over DoH server in DNS Protection.
  2. Select the Custom DNS server.

Expected Behavior

Expected for Adguard to start all protection modules and not immediately fail.

This was working prior to the 4.0 update

Actual Behavior

I added adguards DNS over TLS to the custom DNS servers as per the instructions in adguard DNS and it seems that anytime it is selected, it's causing a crash of the DNS protection module.

IPv4 DNS addresses still function normally.

Screenshots

Screenshot 1:

Additional Information

This happens regardless of snds:// or DoH query address's selected, wether it's adguard or mullvad or another service.

Reinstalling the application doesn't resolve the issue either.

I'm assuming it's crashing the dnsproxy.so library when it's loaded. I'll provide logs if needed.

Dogoo9 commented 1 year ago

Pasting in logs. Link have been hidden due to privacy reasons

sfionov commented 1 year ago

@Dogoo9 Thank you for logs! Can you please collect logs with debug logging on?

  1. Open AdGuard and go to "Settings".

  2. Choose "Advanced".

  3. Set "Logging level" to "Debug". It's desirable to close all background apps that don't concern the problem beforehand.

  4. Turn on "Auto-report crashes".

  5. Reproduce the problem and set the logging level back to "Default". Notice the exact time when it happened.

  6. Tap "Export logs and system info", save and send logs to devteam@adguard.com

maxikuzmin commented 1 year ago

@Dogoo9 any news?

Dogoo9 commented 1 year ago

@Dogoo9 any news?

Sorry about taking so long with getting back to you, been busy with work and irl stuff.

I've just sent the logs through now as per your instructions.

maxikuzmin commented 1 year ago

@Dogoo9 thank you! We'll look at your logs, we need some time

sfionov commented 1 year ago

@Dogoo9 In nightly we have a bug when sometimes system DNS is not used as bootstrap, and secure DNS fails.

We are working on a fix of this issue.

As a workaround, you may set 1.1.1.1 or 94.140.14.140 as bootstrap upstream in low-level settings

Dogoo9 commented 1 year ago

Looks like the latest update fixed the issue, thanks for your help!

Squall-Leonhart commented 1 year ago

Looks like the latest update fixed the issue, thanks for your help!

nah, still happens.

maxikuzmin commented 1 year ago

@Squall-Leonhart to troubleshoot this issue, we need to get additional logs.

Here's what we need you to do:

maxikuzmin commented 1 year ago

@Squall-Leonhart any news?

maxikuzmin commented 1 year ago

@Squall-Leonhart for the moment, I’m closing this issue. You can reopen the issue in the future if the problem persists