dnscrypt-proxy2: example blocklist is enabled by default and blocks legitimate APIs

Aperta Adatta ai principianti
#31,291 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
Meno di un'ora
Idoneità per principianti
65/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva

Direzione di ricerca

La modifica va apportata in net/dnscrypt-proxy2/Makefile, dove il passaggio di installazione esegue un sed intorno alla riga 60 che abilita blocked_names_file in dnscrypt-proxy.toml. Continua a copiare il file della blocklist, ma lascia quell'impostazione commentata come fa upstream, poi verifica la configurazione risultante. È completato quando una nuova installazione lascia l'impostazione commentata e telemetry.googleapis.com si risolve attraverso il proxy. Conferma che il maintainer sia d'accordo con la modifica di policy prima di aprire una pull request.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Package Name

dnscrypt-proxy2

Maintainer

@BKPepe

OpenWrt Version

SNAPSHOT (master, net/dnscrypt-proxy2/Makefile line 60); also seen on a 21.02 based build

OpenWrt Target/Subtarget

Not target specific, it comes from the package install step (seen on a GL-X3000)

Steps to Reproduce
  1. Install dnscrypt-proxy2 and use it as the resolver.
  2. Look up telemetry.googleapis.com or stats.googleapis.com through it.
  3. The query is answered with "This query has been locally blocked by dnscrypt-proxy".
Actual Behaviour

The package installs upstream's example blocklist as /etc/dnscrypt-proxy2/blocked-names.txt and enables it in dnscrypt-proxy.toml at install time (the sed in net/dnscrypt-proxy2/Makefile, line 60 on master). Upstream ships this file as example-blocked-names.txt, to show the pattern syntax, and keeps blocked_names_file commented out.

The patterns are plain prefixes, so besides trackers they match legitimate business endpoints. Some names that fail on a router with the package installed:

  • telemetry.googleapis.com and telemetry.<region>.rep.googleapis.com: the Google Cloud Telemetry API, where applications send their own traces, logs and metrics over OTLP;
  • stats.googleapis.com;
  • any ad.*, tag.*, stats.*, telemetry.* or tracker.* name under a company's own domain.

I don't think it protects anyone much. Real trackers use many other names, while the ones above are services businesses rely on and pay for. What the list does is break them silently: the query gets "This query has been locally blocked by dnscrypt-proxy", so the application only sees a host that doesn't resolve, which looks like a network problem.

For many users it is also invisible. GL.iNet firmware, for example, runs this package when you pick Encrypted DNS in its admin panel, and the panel has no setting for the blocklist. It took me a while to trace a "could not resolve host" error for telemetry.googleapis.com down to this file.

Would it be possible to install the file but leave blocked_names_file commented out, as upstream does, please? Anyone who wants name blocking can enable it with one line, and everyone else gets the DNS answers they expect. Happy to open a PR with that change if it helps.

Confirmation Checklist
Lingua principale
Makefile
Stelle
4.7k
Fork
4k
Merge medio
2g 4h
PR unite (30g)
251

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di openwrt/packages

Tutte le issue di openwrt/packages

Issue simili

Altre issue su Build System

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.