Commit 2a8e59e
authored
Fix/block cloudflare ech type65
* fix(dns): block Cloudflare TYPE65/HTTPS records to prevent ECH failures
Chrome and Safari query Cloudflare-published HTTPS (TYPE65) records for
proxied domains, which include ECH parameters tied to Cloudflare's edge.
When PiHole resolves these domains to local Caddy IPs instead of
Cloudflare, browsers attempt ECH against a server that doesn't support it,
causing ERR_SSL_PROTOCOL_ERROR. Firefox handles ECH retry gracefully;
Chrome and Safari fail hard.
Fix: add local-zone 'static' blocks in Unbound for geeksbsmrt.com and
smrtgeekdevs.com. Unbound returns SERVFAIL for TYPE65 since no local-data
is defined for that type, while PiHole's address= directives continue to
serve A records for all subdomains.
Also adds Access-Control-Allow-Private-Network header to Caddy's external
snippet as a defensive measure for Chrome LNA (Private Network Access)
restrictions.
Affected: docker/unbound/unbound.conf (new), docker/caddy/Caddyfile
* fix(dns): remove hardcoded IPs from unbound local-zone config
local-data A record entries were redundant -- PiHole handles all A record
lookups for these zones via its own address= directives and never forwards
them to Unbound. Only TYPE65 (HTTPS/ECH) queries reach Unbound for these
domains, so local-zone: static alone is sufficient to return NXDOMAIN.
Removing local-data eliminates the hardcoded internal IP scheme from the
repo while preserving the fix.1 parent 595a26c commit 2a8e59e
2 files changed
Lines changed: 89 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
0 commit comments