AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

iCloud Private Relay Blocking - ios26

Open ghost opened this issue 1 year ago • 25 comments

Prerequisites

Platform (OS and CPU architecture)

Darwin (aka macOS), AMD64 (aka x86_64)

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.107.63

Action

Despite iCloud Private Relay Service blocking being enabled, it is no longer blocked on ios26.

IOS18.5 prompted the user to disable private relay on the WiFi network, now the user is not prompted and blocking this service no longer works

Expected result

iCloud private relay not blocked

Actual result

DNS Filtering Bypassed

Additional information and/or screenshots

No response

ghost avatar Jul 01 '25 21:07 ghost

Have you confirm that AdguardHome is allowing the requests? It's possible/probable that Apple are using either hard-coded DNS entires in iOS, or are talking to a 3rd Party DNS server, bypassing AdGuardHome entirely.

If you can provide some logs showing AdGuardHome permitting the queries then I will flag this up, but probably this is just Apple working around people trying to block Private Relay at the DNS level.

tjharman avatar Jul 02 '25 04:07 tjharman

I've come up with a workable solution after further testing. The block iCloud service doesnt work at all on iOS26.

The only way I've been able to get it working as expected is to create custom block rules for:

||mask-h2.icloud.com^$important ||mask.icloud.com^$important ||mask-canary.icloud.com^$important ||canary.mask.apple-dns.net^$important

The key one is mask-canary.icloud.com which allows iCloud Private Relay to detect the service is unavailable and to close down the service gracefully. Without that address - iCloud Private Relay just fails.

When mask-canary.icloud.com is included the user is notified that iCloud Private Relay is unavailabe and DNS resolution then routes through AdGuard.

Image

ghost avatar Jul 02 '25 09:07 ghost

Most of those domains are already blocked by the service, including the canary one...

image

Dynamic5912 avatar Jul 07 '25 11:07 Dynamic5912

In the intervening days, it’s still really flaky, I’ve manually switched iCloud + on my SSID, but I’ve no confidence it will behave properly on my Guest network.

I guess once iOS26 comes out in Public Beta we might see more people raising the same issue.

ghost avatar Jul 07 '25 12:07 ghost

I’ve checked the logs and the canary url is only ever blocked by my custom rule, never by the service.

ghost avatar Jul 08 '25 21:07 ghost

It should. The syntax is correct

Dynamic5912 avatar Jul 08 '25 22:07 Dynamic5912

Does making a change count as a rewrite in custom filtering, or should any type of block — even the Default one — work? I created a specific list for Private Relay. I read that the recommended approach is to rewrite domains to NXDOMAIN, but I’m not sure if that actually registers as a change.

DarkGames26 avatar Sep 08 '25 11:09 DarkGames26

Linking #8516 for traceability. The reproduced cause is that the built-in iCloud Private Relay service rules carry $dnsrewrite/NXDOMAIN, but the blocked-service path discarded that rewrite and generated the generic blocking response. The PR applies the declared rewrite and adds an end-to-end mask.icloud.com regression, matching the report that an equivalent custom rule works while the built-in service does not.

This issue should remain open until the PR is accepted and merged; field confirmation on iOS 26 would still be useful afterward.

Sil3ntVip3r avatar Aug 04 '26 23:08 Sil3ntVip3r

Any update on this being implemented ? Ios27 seems to be even worse on that front and despite all private relays options being off, it still connects and uses it.

zbugrkx avatar Aug 20 '26 12:08 zbugrkx

Use Hagezi's blocklist to block it

Dynamic5912 avatar Aug 20 '26 14:08 Dynamic5912

I added these custom rules to solve this:

||mask.icloud.com^$dnsrewrite=NXDOMAIN;;
||mask-h2.icloud.com^$dnsrewrite=NXDOMAIN;;
||mask-canary.icloud.com^$dnsrewrite=NXDOMAIN;;

Source

alelaba avatar Aug 20 '26 15:08 alelaba

Thanks! I'll try that!

zbugrkx avatar Aug 20 '26 15:08 zbugrkx

Having this issue on my phone. Running 27.0.1

Block private relay is checked in my server profile

Rowleysghost avatar Oct 30 '26 06:10 Rowleysghost

Having this issue on my phone. Running 27.0.1

Block private relay is checked in my server profile

What "issue" are you having?

Dynamic5912 avatar Oct 30 '26 08:10 Dynamic5912

Apologies, I meant not being able to block private relay on my device and not browse through safari But It's working now although not as seamlessly as it used to

Rowleysghost avatar Oct 30 '26 18:10 Rowleysghost

imageimage Yup, Still not working

Rowleysghost avatar Oct 30 '26 23:10 Rowleysghost

Again what's not working?

If it's being blocked it won't be able to resolve DNS queries therefore sites won't load

Dynamic5912 avatar Oct 30 '26 23:10 Dynamic5912

Private relay is still active despite having the switch toggled on in my server setting and I can only browse through safari with adguard when private relay is unavailable which is what was done automatically but it's not working anymore

To accentuate, private relay is active and after some testing I found that when filtering through adguard and private relay is active I can't browse on safari. I believe that was the issue being discussed here, please correct me if I'm wrong

Rowleysghost avatar Oct 31 '26 05:10 Rowleysghost

Are you using AdGuard Home or AdGuard Public DNS?

Dynamic5912 avatar Oct 31 '26 05:10 Dynamic5912

Adguard home

Rowleysghost avatar Oct 31 '26 07:10 Rowleysghost