Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Discord broken on IOS VPN #1718

Closed
kenjiwing opened this issue Feb 9, 2021 · 47 comments
Closed

Discord broken on IOS VPN #1718

kenjiwing opened this issue Feb 9, 2021 · 47 comments

Comments

@kenjiwing
Copy link

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • [x ] I am running the latest version
  • [x ] I checked the documentation and found no answer
  • [x ] I checked to make sure that this issue has not already been filed

Issue Details

  • AdGuard version:
    Adguard for IOS v 4.0.4 (588)
  • Device model and storage size:
    Iphone 11 Pro 14.5 beta (also broke with 14.4)
  • Browser or App:
    Discord

Expected Behavior

Actual Behavior

When you open discord it should work. Instead it hangs at connecting. If you disable adguard it works just fine.

Screenshots

Not needed it simply goes to connecting with discord open.

Additional Information

As soon as you disable the adguard vpn/protection discord works fine. I dont see any blocks in the DNS list.

@kenjiwing
Copy link
Author

This broke around January im wondering if its related to DNS over Quic. Also see thread

https://forum.adguard.com/index.php?threads/adguard-dns-blocks-discord.41689/

@SergeyBerdov
Copy link
Contributor

@kenjiwing
Could you please send logs ?

@jordanelliott23
Copy link

Mine does same thing. But it works sometimes. But I get the connecting hang thing sometimes also. Would a regular log help find the problem or is it need debug log

@SergeyBerdov
Copy link
Contributor

@jordanelliott23
Regular log

@jordanelliott23
Copy link

For me it takes awhile when it shows connecting then it eventually connects. But here is a log idk if it will show anything to help. But here https://ufile.io/arxv7x93

@nileplumb
Copy link

was trying to report via the submission form but it wouldn't let me click next after selecting dns filter.

I too having lots of issues trying to connect to Discord with the vpn enabled

@SethuSenthil
Copy link

I'm having this issue too even when just using the DNS profile, hope they fix this soon! Also, it only seems to happen on iOS.

@calebmorse
Copy link

I have this issue as well. I can try and gather any logs that may help resolve the issue as well. I've found that sometimes clearing the app to restart it fixes the issue but not always.

@SethuSenthil
Copy link

The "best" and easiest workaround I found was to simply disable the DNS profile in iOS settings (Settings > VPN & Network > DNS) which would allow the messages to load. This is obviously not ideal

@calebmorse
Copy link

The "best" and easiest workaround I found was to simply disable the DNS profile in iOS settings (Settings > VPN & Network > DNS) which would allow the messages to load. This is obviously not ideal

Requiring users to enable and disable the DNS filtering feature would be a poor fix. Ideally they update the app or DNS filters to work correctly.

@ameshkov
Copy link
Member

ameshkov commented Mar 20, 2021

Quick question - does it depend on which DNS server you choose or is it happening with any DNS server (even with the System one)?

@calebmorse
Copy link

calebmorse commented Mar 21, 2021

Quick question - does it depend on which DNS server you choose or is it happening with any DNS server (even with the System one)?

It's hard to tell because swapping DNS choices in the app refreshes the network connection and causes Discord to reload. I've done a bit of back and forth switching with some of the larger chat groups that would require loading and it does seem that while connected to the adguard DNS servers it doesn't load but switching to system DNS it will then load. To be clear my method of testing is the following:

  1. While connected to adguard VPN with adguard DNS go to discord.
  2. Messages won't load.
  3. Go back to adguard and change DNS to system DNS.
  4. Return to discord and messages will load.

It's seems like there is some sort of throttling or request timeout happening while connected to the adguard DNS servers.

As stated before, while staying connected to the adguard DNS servers sometimes I can clear Discord from recent applications and open it again and messages will load again. That is hit or miss though as sometimes it will just show "connecting" or not load messages.

@ameshkov
Copy link
Member

What if you choose a different server, not just AG DNS (try Cloudflare or Google for instance)?

@calebmorse
Copy link

What if you choose a different server, not just AG DNS (try Cloudflare or Google for instance)?

I tried that a few times and the same result as before. Messages begin to load one switching off the AdGuard DNS to any of the alternatives.

@SethuSenthil
Copy link

What if you choose a different server, not just AG DNS (try Cloudflare or Google for instance)?

Yeah, switching makes the messages load. Specially cloud-flare in my case

@ameshkov
Copy link
Member

And hopefully the last question - does it make a difference if you choose "AdGuard DNS Non-Filtering" configuration? The one that doesn't block anything.

Sorry for that many questions, we just cannot reproduce it on our side.

@nileplumb
Copy link

nileplumb commented Mar 24, 2021

I'll switch mine over now and let you know if it hiccoughs at some time today (using app based dns vpn)

@nileplumb
Copy link

it hasn't locked up on me all day on the no filtering adguard server, will try tommorrow too

@nileplumb
Copy link

I had 1 lock up today however it also lined up with me leaving wifi and switching to 4G which was prone to bugger discord up for a bit anyway.

Possibly safe to assume the issue is with the filtering versions in some way

@ameshkov
Copy link
Member

Next time this happens, could you please export AG logs and send the archive to devteam@adguard.com?

Please mention the following in the email:

  1. Link to this issue
  2. Exact time when it happened

@nileplumb
Copy link

nileplumb commented Mar 27, 2021 via email

@ameshkov
Copy link
Member

@nileplumb I've got the logs, thank you!

What's strange is that there's nothing blocked at the time when the problem occurs for you.

Could you please do one more thing for us? Let's use local DNS filtering (i.e. tracking requests will be blocked locally right on your device) but a different DNS resolver.

Here's how to do that:

  1. Enable "Advanced mode" in AdGuard settings
  2. Go to DNS protection -> DNS filters
  3. Add "AdGuard DNS filter", here's the link to it: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt (you'll need to enter it there)
  4. Switch to a different DNS that was not causing any issues (Cloudflare, Google, AdGuard DNS Non-Filtering)

If the issue is reproduced again, please send us the logs one more time.

@nileplumb
Copy link

If the issue is reproduced again, please send us the logs one more time.

I've only had 1 instance of discord having connection issues since changing but a simple restart of the discord app fixed that, it seems more stable either way

@nileplumb
Copy link

just reporting still much more stable using the filters file + no filter dns

@ILikePlayingGames
Copy link

I'm having this issue a lot on AdGuard DNS over QUIC via VPN. Here are my discord debug logs for reference. The requests seem to be timing out after 2 seconds. Like others have mentioned, no DNS requests appeared to be blocked for me either.

image

image

image

@dededecline
Copy link

Here's how to do that:

  1. Enable "Advanced mode" in AdGuard settings

  2. Go to DNS protection -> DNS filters

  3. Add "AdGuard DNS filter", here's the link to it: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt (you'll need to enter it there)

  4. Switch to a different DNS that was not causing any issues (Cloudflare, Google, AdGuard DNS Non-Filtering)

This immediately fixed my issue. I restarted my device after changing the settings for good measure. I've been using Discord all morning without any problems after months of constant trouble. I'm using Cloudflare Secure DNS now. Thanks for the suggestion.

@nileplumb
Copy link

nileplumb commented Apr 12, 2021

Yeah definitely acceptable connection times still using file filter instead of basic dns.

So how can you further debug the vpn dns stuff

@ameshkov
Copy link
Member

We've made some changes to AdGuard DNS recently (we had a problem with Google serving us Chinese IPs). I wonder could it be that Discord was affected by the same issue?

Could you please try AG DNS again just to check if the issue is still there?

@nileplumb
Copy link

nileplumb commented Apr 13, 2021 via email

@ameshkov
Copy link
Member

has there been an app update or just cycle the settings in current one?

This seems to be an AdGuard DNS issue so no update is required.

@nileplumb
Copy link

nileplumb commented Apr 13, 2021 via email

@dededecline
Copy link

dededecline commented Apr 13, 2021 via email

@ameshkov
Copy link
Member

So let me please summarize:

  1. First, there's no issue when you're using AdGuard DNS Non-Filtering configuration (i.e. no blocking on the server-side).
  2. The issue is there with any other AdGuard DNS configuration (Default or Family), but it does not appear right away, it takes some time to re-appear.
  3. The issue goes away if you use AdGuard DNS filter locally and use your ISP of CloudFlare DNS.

Am I right?

@nileplumb
Copy link

nileplumb commented Apr 14, 2021 via email

@nileplumb
Copy link

nileplumb commented Apr 14, 2021 via email

@ameshkov
Copy link
Member

@nileplumb could you please email me at am@adguard.com?

If you don't mind, I could share a test DNS endpoint with pretty much the same configuration as the normal AdGuard DNS. This way I could see what requests are made and what happens to them.

@nileplumb
Copy link

of course

@nileplumb
Copy link

nileplumb commented Apr 15, 2021 via email

@ameshkov
Copy link
Member

Yeah, this is indeed unfortunate. Tbh, I am out of ideas for now, that server had pretty much the same configuration as the public one..

@nileplumb
Copy link

nileplumb commented Apr 15, 2021 via email

@nileplumb
Copy link

nileplumb commented Apr 19, 2021 via email

@ameshkov
Copy link
Member

@nileplumb probably just a glitch, I see nothing special in the logs. Note that this is a test endpoint, it sometimes gets restarted/updated randomly.

@nileplumb
Copy link

nileplumb commented Apr 22, 2021 via email

@ameshkov
Copy link
Member

@nileplumb 12:07 what time zone?

In fact, I see one strange thing in the DNS log, it returns a suspicious HTTPS record for discord.com:

discord.com. 67 IN HTTPS 1 . alpn="h3-29,h3-28,h3-27,h2" ipv4hint="0.0.0.59,0.46.3.110,115.49.192.55,10.104.111.115,116.109.97.115"

ipv4hint contains invalid IP addresses. I'll check what could it be.

@ameshkov
Copy link
Member

@nileplumb we've been able to identify the problem and the fix has just been rolled out.

Thank you so much for helping us, this was really valuable.

@nileplumb
Copy link

Cool good to switch back to iOS QUIC app based dns without filter files now?

@ameshkov
Copy link
Member

@nileplumb yep, it should work just okay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests