Fixed cloudflare dns
This commit is contained in:
parent
f6ddc8be7c
commit
77707ce582
@ -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 вместо Яндекса.
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
@ -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]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user