dnscrypt-proxy2: example blocklist is enabled by default and blocks legitimate APIs
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- Under an hour
- Newbie friendliness
- 65/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- build-system, networking
Research direction
The change belongs in net/dnscrypt-proxy2/Makefile, where the install step runs a sed around line 60 that enables blocked_names_file in dnscrypt-proxy.toml. Keep copying the blocklist file, but leave that setting commented out as upstream does, then check the resulting config. Done when a fresh install leaves the setting commented and telemetry.googleapis.com resolves through the proxy. Confirm the maintainer agrees to the policy change before opening a pull request.
Written by the indexing model from the issue text.
Description
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
- Install
dnscrypt-proxy2and use it as the resolver. - Look up
telemetry.googleapis.comorstats.googleapis.comthrough it. - 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.comandtelemetry.<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.*ortracker.*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
- The package is maintained in this repository.
- I understand that issues related to the base OpenWrt repository or LuCI repository will be closed.
- I am reporting an issue for OpenWrt, not an unsupported fork.
- Dominant language
- Makefile
- Stars
- 4.7k
- Forks
- 4k
- Avg merge
- 2d 4h
- Merged PRs (30d)
- 251
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openwrt/packages
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
openwrt/packages#31247 · 1 comment ·
Maintainers usually reply within 1 day
-
msmtp-queue: missing dependencies on grep, coreutils-pr, uuidgenPossibly taken @ElNeMeR70 claimed this 7 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
opennds: nds_ft_INC grows by one rule every 15 s with nftables 1.1.x (fixed upstream in 8b5a23f / v11.0.0)Possibly taken @ElNeMeR70 claimed this 7 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openwrt/packages#31124 · 1 comment ·
Maintainers usually reply within 1 day
-
strongswan: swanctl silently fails to start charon with legacy UCI configurationPossibly taken @feckert claimed this 12 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openwrt/packages#31057 · 3 comments ·
Maintainers usually reply within 1 day
All issues in openwrt/packages
Similar issues
-
cli: `execCargoMetadata` decodes stdout per chunk, corrupting non-ASCII paths across pipe boundariesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
electron-userland/electron-builder#10623 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
craftycodie/cstruct#4 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 72/100
wpgenius/stackfolio#22 ·
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day