AdguardTeam / AdguardForiOS

The most advanced ad blocker for iOS
https://adguard.com/
GNU General Public License v3.0
1.43k stars 202 forks source link

AdGuard cuts off network connection to Custom DNS on iOS #2293

Open Batman2814 opened 7 months ago

Batman2814 commented 7 months ago

Please answer the following questions for yourself before submitting an issue

AdGuard version

4.5.2

Environment

Ad Blocking

No response

Privacy

No response

Social

No response

Annoyances

No response

Security

No response

Other

No response

Language-specific

No response

Advanced protection for Safari

Which DNS server do you use?

Custom DNS

DNS protocol

DNS-over-QUIC

Custom DNS

AdGuard Private DNS

DNS filtering

Custom DNS filter

Na

DNS implementation

AdGuard

Tunnel mode

Split-Tunnel

Low-level settings

Bootstrap server: Fallback server: Blocking mode, etc:

Issue Details

Steps to reproduce:

  1. Have AdGuard Ablocker for IOS & AdGuard VPN for IOS enabled.
  2. After so often the connection to private DNS cuts off and cuts of Network connection.
  3. To get it working have to a least disable VPN and toggle wifi off the on again to refresh the connection.

Expected Behavior

Should not cut off connection to network

Actual Behavior

Network gets cut off.

Screenshots

No response

Additional Information

I will send the logs for this report.

Batman2814 commented 7 months ago

Logs have been sent.

Batman2814 commented 7 months ago

https://github.com/AdguardTeam/AdguardForiOS/issues/2189

Might be related to this also.

maxikuzmin commented 7 months ago

@Batman2814 can you give more details? What dns are you using? How often does the internet connection break? Does the connection break just happen after some time, are there any additional steps to break the internet connection?

Batman2814 commented 7 months ago

I'm using AdGuard Private DNS. Protocol QUIC. All I know is it happens either when I come back from it. It also might have happened when using it, too. I always have AdGuard VPN for iOS enabled. It always seems to happen after some time.

maxikuzmin commented 7 months ago

@Batman2814 could you please clarify, with other DNS's this problem does not recur? Have you tried changing the protocol or DNS?

Batman2814 commented 7 months ago

Good day. I have not yet attempted to modify the protocol or DNS settings. Could you please advise if I should proceed with either of these actions? If so, kindly specify whether I should prioritize changing the protocol to TLS or switching to AdGuard Public DNS within the AdGuard Adblocker Pro application for iOS. Your guidance would be greatly appreciated.

maxikuzmin commented 7 months ago

@Batman2814 we need to understand first whether the problem is with the individual DNS (or DNS protocol) server or with the DNS partition as a whole. So I ask you to try to select a different DNS with QUIC protocol, and also try with a different DNS (DOH or DOT protocol). Perhaps the problem could also be in Private DNS.

I tried also reproducing this problem but it did not happen again for me, it would be nice to get your debug logs as well

Batman2814 commented 7 months ago

I would be happy to test that out and get back to you about the issue. I did send debug logs in the email. Could you please let me know what happened to that log?

Batman2814 commented 7 months ago

When I encountered the same issue once more while using AdGuard Private DNS on my Apple iPhone, I decided to toggle the Wi-Fi connection off and then back on. Surprisingly, this action prompted a sudden refresh, which successfully established a connection. Additionally, the most recent activity time was updated on the AdGuard Private DNS website within my account.

maxikuzmin commented 7 months ago

@Batman2814 we got your logs, I meant logs with other DNS. By the way what about other DNS? Have you tried to check this problem with other DNS? After your update, after restarting the WIFI connection, did the problem recur again?

maxikuzmin commented 6 months ago

@Batman2814 any news? Have you tried a different DNS or protocol?

Batman2814 commented 6 months ago

I have identified the potential source of the issue to be the AdGuard VPN iOS application. I conducted a test by disabling the AdGuard VPN, and the connection remained stable. However, upon activating the AdGuard VPN, the connection eventually terminated.

maxikuzmin commented 6 months ago

@Batman2814 could you record the extended logs and send to devteam@adguard.com? Don't forget to include the time the problem recurred and the Issue number

AleksandrKalininAdGuard commented 6 months ago
maxikuzmin commented 6 months ago

@AleksandrKalininAdGuard unfortunately this is not a similar case

maxikuzmin commented 6 months ago

@Batman2814 did you manage to upload logs from both AdGuard + AdGuard VPN apps? Also please clarify how you configured Private DNS

Batman2814 commented 6 months ago

I haven't yet yet, but I will do it.

maxikuzmin commented 6 months ago

@Batman2814 do you have the User rules for your DNS?

Batman2814 commented 6 months ago

Could you please clarify what you mean by user rules for my DNS?

maxikuzmin commented 6 months ago

@Batman2814 on the AdGuard DNS website in the menu Server settings -> User Rules You may have rules affecting the network there

Batman2814 commented 6 months ago

Logs have been Sent

Batman2814 commented 6 months ago

Logs from Adguard VPN for iOS

maxikuzmin commented 5 months ago

@Batman2814 thanks, we will need some time to into it the logs

maxikuzmin commented 5 months ago

@Batman2814 we made some changes in version 4.5.3 Could you please repeat the steps on version 4.5.3 and if the problem recurs send new logs?

Batman2814 commented 5 months ago

Certainly, I will monitor the situation and inform you if the issue persists.

maxikuzmin commented 4 months ago

@Batman2814 any news?

Batman2814 commented 4 months ago

Everything is good so far. AdGuard Private DNS hasn't cut off the connection with AdGuard VPN for iOS enabled.

gpodder770 commented 4 months ago

I am also having this problem. Using any dns in native mode in the adguard app, causes internet to turn off when screen is turned off for like 1mins or more

but if I use the dns profile way to use dns then wifi is always on

using adguard dns but checked with nextdns also

strange problem

maxikuzmin commented 4 months ago

@Batman2814 @gpodder770 is the problem still recurring in version 4.5.3?

gpodder770 commented 4 months ago

@Batman2814 @gpodder770 is the problem still recurring in version 4.5.3?

Yes for me

thus i am using apple configuration file

maxikuzmin commented 4 months ago

@gpodder770 so when you add any Custom DNS you have no internet connection when screen is turned off for like 1mins or more?

Could you please specify which addresses you are adding?

Also could you please send your logs?

Here's what we need you to do:

maxikuzmin commented 4 months ago

@gpodder770 any news?

gpodder770 commented 4 months ago

@gpodder770 any news?

I stopped using dns via adguard entirely

using via profile system

maxikuzmin commented 3 months ago

@gpodder770 but we need your logs to figure out the problem. Could you please repeat the steps again as instructed and send us the logs?

maxikuzmin commented 3 months ago

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