Fixed cloudflare dns

This commit is contained in:
Sam Latsin 2026-10-26 19:05:48 +03:00
parent f6ddc8be7c
commit 77707ce582
16 changed files with 82 additions and 0 deletions

View File

@ -363,6 +363,13 @@ RU-адреса, без OpenVPN, Tailscale, торрентов и `PUSH`; сво
`wget`/`opkg` самого роутера (обновления kit, ядро) нужна ещё запись в dnsmasq:
`uci add_list dhcp.@dnsmasq[0].address='/sam-hub.net/192.168.64.20'`.
Правила выбираются по имени сайта: его mihomo знает из своего DNS или достаёт сниффером из
рукопожатия TLS/QUIC. Сайты за Cloudflare с ECH (браузер получил ключи через свой DoH)
показывают в рукопожатии не своё имя, а `cloudflare-ech.com`. Такое имя сниффер пропускает
(`skip-domain`), иначе `.ru`-сайт за Cloudflare уходил бы в `MAIN`. Если устройство спрашивает DNS
в обход роутера («Безопасный DNS» в браузере, «Частный DNS» на Android), имени у mihomo нет
вовсе, и правила по доменам для такого трафика не работают.
На `foreign` российские домены не попадают в исключения fake-ip: их разрешает RU-нода, а
для прямого трафика DNS — Cloudflare/Google вместо Яндекса.

View File

@ -3,6 +3,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880] #@!lite

View File

@ -125,6 +125,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -122,6 +122,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -127,6 +127,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -126,6 +126,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -138,6 +138,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -109,6 +109,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -144,6 +144,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -126,6 +126,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080]

View File

@ -120,6 +120,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080]

View File

@ -139,6 +139,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -87,6 +87,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -145,6 +145,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -128,6 +128,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]

View File

@ -144,6 +144,11 @@ sniffer:
force-dns-mapping: true
parse-pure-ip: true
override-destination: false
# ECH: browsers show the outer name cloudflare-ech.com instead of the site behind
# Cloudflare; the sniffed name wins in the rules, so .ru / own lists would miss the
# site. Skipped: the rules see the name from mihomo's DNS (fake-ip / DNS mapping).
skip-domain:
- "+.cloudflare-ech.com"
sniff:
HTTP:
ports: [80, 8080-8880]