Repository navigation
Releases
v0.8.0
Faster lookups after quiet periods, and a much more detailed health check for
monitoring. Update from the dashboard (Device → Check for updates); settings are
kept.
Added
GET /api/healthreports more, all additive (existing fields and issue codes are
unchanged): DNS totals since boot (queries, blocked, forwarded, cached, SERVFAIL,
discarded, rate-limited), the average answer time and upstream time over the last
5 minutes, cache size, free heap and PSRAM, sockets in use, flash use, chip
temperature, Wi-Fi reconnects, hours to the next blocklist update and the last
update result as a code, boot and crash counts (kept across restarts), liveness,
OTA state and the git commit of the build. New issue codes:dns_slow,
socket_pressure,queries_dropped,fs_low,temp_high,task_stalled,
ota_rolled_back.
Fixed
- Cache misses after a quiet spell no longer take ~2 s. Cloudflare's TLS session
tickets expire 5 minutes after the full handshake, so when the board reconnected
later (for example when a cached name expired), it had to do a full TLS handshake
(~1.5 s on this chip) while the query waited. The board now renews the session in
the background shortly before the ticket expires, while no query is waiting, so
reconnects resume in about 0.1 s.
v0.7.0
A health check for monitoring: point an uptime monitor at /api/health to be told
when the blocklist goes stale, DNS falls back to unencrypted, or the board crashed,
without giving it the dashboard password. Update from the dashboard (Device → Check
for updates); settings are kept.
Added
GET /api/health: a password-free health check for uptime monitors. It returns
an overallok, short issue codes (blocklist_stale,plain_fallback,
upstream_down,crashed, …) and a few harmless status values (version, uptime,
blocklist size and age, heap, Wi-Fi signal), never clients, names or settings. See
Health check for monitoring in the README.
v0.6.1
Security fix: the board stops trusting a certificate authority whose keys were
compromised. Update from the dashboard (Device → Check for updates); settings are
kept.
Security
- The board no longer trusts the
emSign ECC Root CA - G3certificate authority:
eight of its intermediate certificates had their private keys stolen
(GHSA-6q48-6c7w-9gw2), so
someone holding one could have impersonated Cloudflare, Quad9 or GitHub to the
board on a path they control. The board removes it from its built-in certificate
list at startup (the other emSign roots are unaffected and stay). - Development tools: patched
certifi,filelockandvirtualenv(Dependabot
alerts; nothing in the firmware).
v0.6.0
Fixes from a full security and robustness audit, all tested on a board: no device on
the network can restart the board, stall DNS or push it onto unencrypted DNS any more,
and firmware updates from the dashboard are checked before they are kept. Update from
the dashboard (Device → Check for updates); settings are kept.
Added
- A dashboard demo on the installer site
(denzilrdz.github.io/esp32-s3-adblock/demo/):
the real dashboard with a simulated board behind it, so anyone can click around
before buying one. Traffic follows a household day (quiet nights, busy evenings,
bursts when an app opens); pausing, rules, rewrites, bans, upstream tests and
reboots all respond. Nothing leaves the browser.
Fixed
-
A burst of lookups for a slow website (many names whose own DNS servers take more
than 2.5 s) could mark every encrypted upstream down one after another and switch
the whole network to plain, unencrypted DNS for up to 5 minutes. Such a burst now
counts as one failure, an upstream that is still answering other lookups is never
marked down, and while every encrypted upstream is down they are retried every
10 s so plain DNS ends quickly. -
Any device on the network could restart the board by asking a DNS question over
TCP and then reading the answer a few bytes at a time. Each TCP answer now has to
go out within 1 second, or the connection is closed. -
One device sending lots of lookups for names that aren't cached could use up all
32 waiting slots, so every other device got errors. When the slots run short, one
device is now held to half of them, keeping room for everyone else. -
A flood of DNS queries from one device could starve the board's other work until
it restarted itself; the DNS task now pauses briefly between batches. -
Banning a client or importing settings paused every DNS lookup on the network
while the ban list was written to flash; adding a DNS rewrite paused them while
a log line was printed. Both now happen without holding up lookups. -
The Clients list stopped adding devices after the first 96 it had seen (phones
with private Wi-Fi addresses get new ones over time) until the board restarted.
The device not seen for longest now makes room. -
Any device on the network could fill the board's memory without logging in by
sending one huge (or endless) web request. Requests to the dashboard larger than
8 KB, other than file uploads, are now refused straight away. -
Someone holding a dashboard session could guess the current password without
limit on the password-change form; it now has the same lockout and delay as the
login. -
A blocklist URL longer than 199 characters was accepted, then lost at the next
restart, and made settings exports that couldn't be imported. It is now refused
with a clear message, and changing the URL forgets the old list's download tag. -
The upload endpoints could answer a later request using an earlier upload's
login check. Each request is now checked on its own. -
A file upload from someone who isn't logged in was still read to the end (as
slowly as the sender liked), keeping the dashboard busy. It is now refused at
once. -
A firmware update that got stuck while starting up (for example unable to join
Wi-Fi) left the network without DNS until someone unplugged the board. It now
rolls back to the previous firmware after 10 minutes. An update is also only kept
once the dashboard answers, so a broken dashboard can't block the next update. -
A browser opening several connections to the dashboard could use up the board's
network sockets and make encrypted DNS reconnects or the blocklist download fail. -
A blocklist of close to 1 million names installed once and then every later update
failed with "not enough flash" (two copies of it don't fit). The limit is now
900,000 names, which leaves room for the update's copy. A bigger list already on
the board keeps working, but its updates are refused: pick a smaller list. -
The daily default blocklist no longer lets its source lists block the board's
update site, GitHub, its DNS and time servers or big shared hosting (they are
dropped with a warning), nor whole suffixes likeco.uk. A list that shrinks to
less than half or grows to more than double is not published. -
Replies now repeat the question exactly as it was asked (upper/lower case
included). A router or resolver that forwards to the board and randomises letter
case as an anti-spoofing measure (DNS 0x20) rejected every answer before. -
A DNS answer larger than 4 KB made the client wait 2.5 s for an error and counted
against a healthy upstream (over DNS-over-HTTPS it also dropped the connection).
Such a lookup now fails at once and nothing is marked down.
Security
-
Encrypted DNS connections now refuse an expired or not-yet-valid server
certificate once the board's clock is set (the TLS library never checked dates). -
Plain (unencrypted) fallback DNS now uses a random source port that changes after
every burst of lookups, which makes forged answers much harder to slip in. -
One device asking with DNSSEC checking disabled (
dig +cd) could make the cache
hand an unvalidated answer to every other device. Such answers are no longer
cached. -
The one-time setup code shown on the serial console at first boot is now made
from the hardware random number generator with its entropy source switched on
(Wi-Fi isn't running yet at that point). -
The dashboard's Content-Security-Policy also sets
base-uri 'none',
form-action 'self'andobject-src 'none'.
v0.5.0
Adds a one-click test of every upstream DNS server. Update from the dashboard
(Device → Check for updates); settings are kept.
Added
- Test all upstreams under Upstream DNS on the dashboard: looks up
example.com
once through every upstream (Cloudflare and Quad9 DNS-over-TLS, DNS-over-HTTPS and
plain DNS, standby ones included) and shows the result and latency of each, or why
it failed (e.g. the TLS error code). Normal lookups keep working during the test.
Fixed
- A standby upstream (e.g. Quad9) no longer shows "down" for days after a short
outage. It stayed that way because standbys are only used when the active upstream
fails; a passing test now puts it back to standby.
v0.4.4
Makes the board's reconnect after a router reboot more reliable with slow routers.
Update from the dashboard (Device → Check for updates); settings are kept.
Fixed
- A slow router no longer cuts off the board's own reconnect. A TP-Link Deco that is
still starting took up to 25 s to hand out an address; the board now waits up to
30 s for it instead of restarting the join. At boot every join attempt gets 30 s
(it was 15 s after the first).
v0.4.3
Fixes the board staying offline for up to 10 minutes after a router reboot. Update
from the dashboard (Device → Check for updates); settings are kept.
Fixed
- After a router reboot the board could stay offline for 10 minutes, until it
restarted itself, even though the Wi-Fi was back: while a mesh router (e.g. TP-Link
Deco) starts up it reports a reason the Wi-Fi driver doesn't retry. The board now
retries on its own (10 s after the drop, 20 s later, then every 30 s) and rejoins
within about 30 s of the router being ready. Devices using it for DNS no longer show
"no internet" for those minutes.
Changed
- The log names the reason for each Wi-Fi drop. With Settings → Log level → debug it
also shows every disconnect and which mesh node and channel the board joins.
v0.4.2
Fixes a false spike in the dashboard's queries-per-minute chart. Update from the
dashboard (Device → Check for updates); settings are kept.
Fixed
- The Queries per minute chart no longer shows a false spike (e.g. 1,800/min) right
after logging in, pressing a button or a reboot. Two samples taken a moment apart
turned a few queries into a huge per-minute rate; rates now need at least 10 s of
history.
v0.4.1
Fixes a restart loop while the router reboots. Update from the dashboard (Device →
Check for updates); settings are kept.
Fixed
- A board that has joined its Wi-Fi before no longer ends up restarting over and over
while the router comes back from a reboot. Mesh routers (e.g. TP-Link Deco) can show
their network before they let devices in, and the failed joins looked like a wrong
password, so the board opened its setup network and restarted every few minutes. It
now keeps retrying a known network (every 5 s, slowing to every 30 s) and never
opens the setup network on its own. To enter a new Wi-Fi password, hold BOOT
while powering on or use Forget Wi-Fi in the dashboard.
Changed
- The link-preview card (installer site and GitHub) also lists backup and restore.
v0.4.0
Settings backup and restore, an optional scheduled reboot, and dropdowns instead of
typing in the dashboard. Update from the dashboard (Device → Check for updates);
settings, bans and rules are kept, and going back to an older version is safe (it
ignores the new reboot settings).
Added
- Settings backup and restore (Device → Backup & restore): export the settings,
reboot schedule, blocklist URL and update time, custom block/allow rules and banned
clients to one JSON file, and import it on the same or another board. The whole file
is validated first and a bad one changes nothing (the error names the field);
sections missing from a file are left as they are. Passwords, Wi-Fi and rewrites are
never exported. Scriptable:GET /api/settings/export,POST /api/settings/import. - Scheduled reboot (Settings → Time & scheduled reboot): never (default), every
day, or once a week, at a time in the device's time zone. The dashboard shows the
next one; it waits for the clock, never runs twice in a day (DST included), skips a
day right after a start, and waits while firmware is being installed. The reason
shows under Last restart.
Changed
- Dropdowns instead of typing: time zone (50 common zones with daylight saving
rules, a Use this browser's time zone shortcut, or a custom POSIX string),
blocklist update time and reboot time (hour and minute), blocked-answer TTL, and
readable upstream and log-level names. - The blocklist update time is checked strictly (
HH:MM);2:5xused to be read as
02:05. - README: a Settings screenshot, a tidier Rewrites one (no longer cut off mid-row), and
sections on backup and scheduled reboot. New images are palette-compressed (~70%
smaller).