NetShield
How ABA's DNS filter works, on Windows, macOS and Linux: the lists, what is never blocked, and what happens when something goes wrong.
From docs/netshield.md in ABA's source code
NetShield is ABA's DNS filter. With it on, every name lookup on the PC goes
through a small resolver inside ABA's service. Names on the block lists you
switch on get "nowhere" (0.0.0.0 / ::); every other question is passed,
unchanged, to the DNS servers the PC was already using. It works for every
program (browsers, games, updaters, malware's own downloaders), not only
browsers.
It adds to Windows Defender and SmartScreen rather than replacing them: SmartScreen checks what Edge opens and what you run; NetShield stops any program from even finding a known malware, phishing or scam host. (The owner asked for it explicitly; it is the one ABA feature that isn't a trap.)
Code: internal/netshield (lists, matcher, resolver, per-system switch),
internal/service/netshield.go (the service's side), internal/cli/netshield.go
(aba netshield), internal/appapi/netshield.go (the app's read model),
cmd/aba-app/frontend/js/screens/netshield.js (Settings › NetShield).
The lists
Every list is from HaGeZi's DNS blocklists (https://github.com/hagezi/dns-blocklists, GPL-3.0): one maintainer, rebuilt several times a day, with an allowlist process that keeps false blocks rare, all in the same "domains, no subdomains" format (each name blocks itself and everything under it). ABA never ships, changes or redistributes them: each PC downloads them itself from the maintainer, so the GPL's redistribution terms don't come into play. (Considered and not used: StevenBlack/hosts (MIT) mixes ads and malware in one list; OISD's license doesn't allow this kind of use; Phishing Army is CC BY-NC; URLhaus alone is already part of HaGeZi's threat feed.)
| switch (ID) | lists | names (29 Nov 2026) | default |
|---|---|---|---|
Malware, phishing & scams (malware) | Threat Intelligence Feeds (tif), Fake (fake) | 877,274 + 10,690 | on |
Ads & trackers (ads) | Multi NORMAL (multi), Pop-Up Ads (popupads) | 180,102 + 71,689 | on |
Device telemetry (telemetry) | Native trackers: Microsoft, Apple, Amazon, Samsung, LG webOS | ~1,550 | off |
Adult content (adult) | NSFW (nsfw) | 102,520 | off |
Gambling (gambling) | Gambling (gambling) | 727,208 | off |
Social media (social) | Social Networks (social) | 8,327 | off |
Piracy (piracy) | Anti-Piracy (anti.piracy) | 66,294 | off |
DNS bypass (bypass) | Encrypted DNS/VPN/Tor/Proxy Bypass | 16,596 | off |
All on: 1.85 to 2 million distinct names (the lists grow and shrink daily).
Fetching. HTTPS only, from pinned addresses: raw.githubusercontent.com
first, then jsDelivr's copy of the same repository (cdn.jsdelivr.net/gh/…).
Redirects must stay on HTTPS. 64 MB at most per download. A download that
breaks off tries the next address; a list that's refused doesn't (the mirror
has the same list). jsDelivr serves GitHub files up to 20 MB only: the
biggest list (Threat Intelligence Feeds) is 16 MB today, so if it ever
passes 20 MB its fallback stops working and only GitHub serves it. Once a
day per list (and at once when a list's copy on disk is missing or damaged) (a list without a copy is tried every 10 minutes; a failed try waits an
hour). The service does it; aba netshield update does it now.
Checks before a copy is used (ParseList, Sane); a copy that fails any
is refused whole and the last good copy stays in use:
- more than 2 % of the lines aren't names (an error page, a captive portal's page, another format);
- fewer or more names than any real copy has (per list bounds in
catalog.go), or, against the copy in use when that's less than a week old, less than half or more than three times as many; - it lists a name ABA must never block itself:
microsoft.com,windowsupdate.com,update.microsoft.com,live.com,apple.com,icloud.com,mesu.apple.com,github.com,githubusercontent.com,objects.githubusercontent.com,raw.githubusercontent.com,jsdelivr.net,ntfy.sh,google.com,cloudflare.com, CDN roots and certificate authorities (criticalNamesinguard.go). A list that would block all of Windows Update or GitHub is broken, whatever else is in it.
Entries that are whole public suffixes (co.uk, github.io, duckdns.org:
the Public Suffix List, ICANN and private sections) are left out of a list
rather than block every site under them.
Never blocked, whatever a list says (protectedNames, checked on every
question): Windows Update, Store downloads, activation and licensing, Microsoft
sign-in, Defender and SmartScreen's cloud, every system's "am I online?"
check (so captive portals keep working: msftconnecttest.com,
captive.apple.com, connectivitycheck.gstatic.com, …), Apple software
update and activation, certificate checks, time servers (time.windows.com,
pool.ntp.org, …: a wrong clock breaks every HTTPS site), Windows Update's
peer delivery, Linux package and app stores (Ubuntu, Debian, Fedora, Snap,
Flathub), ABA's own update host (GitHub and
its asset hosts), the lists' hosts, ntfy.sh and canarytokens, and the
servers this PC's phone alerts go to (from the secrets: a Discord webhook
keeps discord.com open even with Social media on, an SMTP server, an ntfy
server of your own).
Storage. Lists are kept as sorted 64-bit FNV-1a hashes of the names, not
as text (ABANS1 files with a SHA-256 trailer, in
<data dir>/netshield/lists/), next to lists.json (per list: count,
version, when, from where, the last error). The data folder is
administrators-only. Nothing of the lists is ever inside aba.exe (the miner
trap's lesson: malware names inside an exe are what antivirus engines look
for), and the hash form keeps any scanner from reading a file of malware
names on disk.
Answers
- A blocked A or AAAA question:
0.0.0.0/::, TTL 60 s. Any other type for a blocked name: NOERROR with no records (NODATA) and an SOA, so the "no" is cached. Not NXDOMAIN: Windows' DNS Client treats a "no such name" as a reason to try the name with the PC's DNS suffixes and on its other networks (more queries, and with some VPNs, a leak to another server);0.0.0.0ends it at once, and programs fail fast connecting to it. (On Linux,0.0.0.0reaches the local machine: a local web server would answer a blocked ad's request; browsers refuse public sites that resolve to it.) use-application-dns.net: NXDOMAIN while NetShield is on. That is Firefox's canary: a network that answers so asks Firefox not to turn on its own encrypted DNS by itself.netshield-check.aba.example: the resolver's own address. The service looks it up through the system after switching NetShield in, and every five minutes; three misses and NetShield steps out of the way (see below).- Everything else is forwarded byte for byte with a new random ID; the answer must match ID and question (no spoofed answers). The next server is asked when one hasn't answered in 400 ms (all keep listening), SERVFAIL after 4 s. A server that stayed silent while a later one answered is asked last for 10 minutes (a network's IPv6 DNS server that never answers mustn't cost every question 400 ms; found in the VM), and link-local IPv6 servers start last. TCP questions are forwarded over TCP; a long answer to a plain UDP question is cut to TC so the asker comes back over TCP.
- Unblocked sites (the allowlist, at most 500): the name and everything under it. "Unblock" on a recent block unblocks the listed name it was under.
- Pause (15 min / 1 h / 4 h, or 1–1440 minutes from the CLI): everything is forwarded until then; the system's switch stays, so resuming is instant.
How lookups reach it, and how they stop reaching it ("fail open")
The rule everywhere: a NetShield that isn't answering means names resolve as if it had never been on, never that they stop resolving. ABA's own internet (updates, phone alerts) and yours never depend on ABA running.
The resolver shares the miner trap's DNS listener on 127.97.98.97:53 (one
listener, dnsHandle in the service): pool names go to the miner trap while
it's on, everything else to NetShield; with neither on, the listener
refuses everything and closes.
The service switches NetShield in only once the listener answers, the PC's
own DNS servers are known and the lists are loaded; then it checks a lookup
of netshield-check.aba.example through the system. It switches NetShield
out before the listener closes (aba netshield off, stopping, an update,
uninstall), whenever it can't do its job (no DNS server known, another
program in charge of DNS), and after three failed checks.
Windows
One Name Resolution Policy Table rule ({ABA0A0A0-4E45-5453-4849-454C44000001},
"NETSHIELD" in hex) for the namespace . (every name) in the local NRPT
store, GenericDNSServers = 127.97.98.97;<the PC's own servers>. The same
mechanism as the miner trap, VPNs' split DNS and DirectAccess. More specific
rules win: the miner trap's pool names, a VPN's company names
(Add-DnsClientNrptRule, AnyConnect, Tailscale's MagicDNS names) keep going
where they went.
The PC's own servers come from the network adapters (GetAdaptersAddresses):
lowest interface metric first, as Windows asks them (a VPN's tunnel, metric 5
as a rule and often without a gateway address, before Wi-Fi or Ethernet; the
same metric: the one with a gateway first), an adapter's link-local IPv6
servers after its others; names under an adapter's DNS suffix or
search list go to that adapter's servers first (a router's .lan, a
split-tunnel VPN's corp.example.com). Windows' placeholders for "no IPv6
server" (fec0:0:0:ffff::) are left out. When the adapter Windows asks
first is also the one internet traffic goes through (a full-tunnel VPN while
it's connected; found with GetBestInterfaceEx, a route lookup that sends
nothing), only its servers are asked, and only they are the rule's fallback:
the other adapters' servers are past the tunnel, and asking them would be a
DNS leak the VPN alone doesn't have (they still answer for their own DNS
suffixes). A split-tunnel VPN keeps Windows' order: its servers, then the
Wi-Fi's. The same holds without a VPN: on a PC with two networks up
(Ethernet and Wi-Fi), only the one Windows asks first and sends internet
traffic through is asked, and only its servers are the rule's fallback. Checked every 5 seconds: when you join another network or a VPN
connects, the resolver and the rule's fallback list follow.
Failing open on Windows:
- The fallback servers in the rule. When nothing answers on
127.97.98.97(ABA killed, crashed, being updated, or deleted by an antivirus), Windows' DNS Client moves on to the PC's own servers listed after it. Lookups keep working, unfiltered. - A volatile registry key. Windows forgets the rule at every restart, so a PC never starts up with a rule nobody keeps up to date; the service puts it back once its resolver answers.
- Taken out first. The service removes the rule before it stops, updates, or is uninstalled, and when NetShield is switched off (the CLI also removes it at once, whatever the service is doing).
- The service comes back by itself (recovery actions: 2 s, 5 s, 30 s), and puts the rule back with fresh servers.
What's left: if ABA's service is killed and stays dead, and you then move to another network before Windows restarts, the rule's fallback servers are the old network's: lookups may fail until a restart (the rule is gone then) or until ABA is back. That needs ABA dead and a network change in the same session.
NetShield stands back (and says why, in the app, aba netshield status and
aba doctor) when another program already sends every name to its own
server (a "." rule of a VPN, Tailscale's "Override local DNS": the two can't
both be the one), on PCs whose NRPT rules come from Group Policy (a company
or school manages its DNS), and while a question to its own address doesn't
get through: a VPN's kill switch (WireGuard's "Block untunneled
traffic", OpenVPN's block-outside-dns) is a Windows Filtering Platform
rule that lets DNS reach only the VPN's servers, from every program but the
VPN's own, loopback included. Measured before this check existed: every
lookup waited about a second on ABA's blocked address, then went to the
VPN's server, unfiltered, and NetShield never noticed. The service asks its
own address before switching in and every 5 seconds; it's back in within
5 seconds of the other program's rule or kill switch going away. When the
service comes back after being stopped or killed, it also has the DNS Client
read its rules again (without that, Windows kept asking the fallback servers
it had moved on to, and nothing was blocked for minutes).
Linux
systemd-resolved: a drop-in, /run/systemd/resolved.conf.d/aba-netshield.conf
(DNS= empty first, DNS=127.97.98.97, Domains=~.), then
systemctl reload systemd-resolved (a restart on a systemd that can't
reload it). Taking it out is always a restart: a reload doesn't drop the
global ~. domain once the drop-in is gone (systemd 262). resolved keeps
what VPNs and DHCP told it across a restart (it saves its networks' settings
under /run; checked on Ubuntu 24.04 and Fedora 45 with a split-DNS link). Names under a network's own routing domains
(NetworkManager's or networkd's VPN and LAN domains) still go straight to
that network's servers: resolved prefers the longer match. The empty DNS=
sets aside a server configured for the whole system in resolved.conf,
which would otherwise come before ABA's.
NetShield asks resolved itself where lookups went before (its D-Bus
interface, org.freedesktop.resolve1) and asks the servers resolved itself
would ask (resolvedUpstreams in routing.go): when a network claims every
name with the routing domain ~. (wg-quick's tunnel, a full-tunnel
NetworkManager VPN), only that network's servers; otherwise the servers for
the whole system and those of every network that's a default route for names
(DefaultRoute), the network internet traffic goes through first (a
full-tunnel OpenVPN with update-systemd-resolved, which doesn't claim
~., before the LAN). A network's own domains go to its servers first, and a
network that only serves its own domains (a split VPN) is never asked about
anything else. Without D-Bus: resolved's uplinks file. (Before: every
default-route network's servers, in resolved's list order; with a full-tunnel
VPN up, NetShield asked the LAN's server, past the tunnel, whenever the VPN's
took 400 ms, and with OpenVPN it asked the LAN's first.)
While a network claims every name (~.), resolved asks both it and
NetShield (whose ~. is equally long) about every name and takes the first
answer. Measured on Fedora 45 (systemd 262) with NetworkManager's WireGuard:
the first lookup of an ad host got NetShield's 0.0.0.0, every later one the
VPN's cached real address. So while one does, the drop-in also names, as
routing domains, the top-level domains with the most names on the lists that
are on (Domains=~com ~net ~ru …, at most 240: resolved takes 256 domains
for the whole system before systemd 258), each a longer match than ~.:
resolved then asks only NetShield about names under them, and NetShield
asks the VPN's servers. The lists' top-level domains are counted when a list
is parsed and kept in lists.json (lists stored by an older version are
fetched again once for it). A VPN's own domains (corp.example.com) are
longer still and keep going straight to its servers. A reload doesn't drop
domains from resolved's settings (systemd 262), so they stay until the
service stops or NetShield is switched off, harmlessly: they point at
NetShield, which asks the right servers. Names under the other top-level
domains still go to NetShield and the VPN's server at once, and the first
answer wins (in practice NetShield's, a block being answered on the spot,
but not for certain once the VPN's answer is cached); the service log says
how many of the listed names that leaves (for the HaGeZi malware and ads
lists of 29 Nov 2026, the top 240 of their 794 top-level domains cover
99.2 % of the names).
Why the drop-in lists only ABA's address, not the real servers after it: resolved, when one of a scope's servers fails, moves to the next and stays there until that one fails too. With the real servers listed, one slow answer from ABA's resolver would switch filtering off, silently, for good. Failing open is done by taking the setting out instead (below).
Failing open on Linux: the file is under /run (gone at every restart), and
the service unit has
ExecStopPost=-/bin/sh -c 'if [ -e …aba-netshield.conf ]; then rm -f …; systemctl try-restart systemd-resolved.service; fi':
systemd runs it whenever the service stops, however it stopped (kill -9
included), with nothing but the system's own tools. A service that hangs
instead of dying: the unit has WatchdogSec=20, and the service tells
systemd it's alive every 5 seconds only while NetShield's resolver answers
a test question (when NetShield is switched in), so systemd stops a hung
one within 20 seconds, which takes the setting out, and starts it again.
NetShield refuses to switch in until the installed unit has the
ExecStopPost line; the service rewrites an old unit at start (an update
replaces the program, not the unit).
Needs systemd-resolved with every program using it: /etc/resolv.conf must
be its stub (127.0.0.53; nss-resolve alone isn't enough: Go and static
programs read /etc/resolv.conf and ask what it names). Otherwise NetShield
says so and stays off: ABA never rewrites /etc/resolv.conf.
It also stands back, and says why (in the app and aba doctor), where
resolved encrypts DNS (DNSOverTLS=yes or opportunistic, globally or on a
network that's a default route: it would try TLS to ABA's resolver and every
lookup would fail, or silently fall back to plain DNS) or checks DNSSEC
(DNSSEC=yes or allow-downgrade: ABA's own answers aren't signed, so
resolved would reject them).
macOS
configd, macOS's own network settings daemon, which builds the resolver list
every program's lookups go through (mDNSResponder, and /etc/resolv.conf
for the few programs that read it). NetShield adds one entry to its dynamic
store, State:/Network/Service/ABA-NetShield/DNS:
ServerAddresses = (127.97.98.97), SupplementalMatchDomains = (""),
SupplementalMatchOrders = (1). A supplemental resolver is what VPNs make
for their company names; with the empty match domain it matches every name,
and with order 1 configd puts it first, before the network's own resolver
(without an order it got about 102200, and a VPN that sets its server on the
primary network with an order of its own came first: OpenVPN 2.7's
dns-updown uses 5000, and in the lab every name went to the VPN's server,
nothing was blocked, and NetShield said it was on) (scutil --dns shows it as resolver #1, and
State:/Network/Global/DNS and /etc/resolv.conf follow it). More specific
resolvers still win: a VPN's split DNS (corp.example.com to its servers)
and /etc/resolver/<domain> files keep going straight to their servers.
Interface-scoped lookups (a program that asks over one network on purpose)
go to that network's servers, as before.
The listener's address isn't on a Mac's loopback interface by itself (only
127.0.0.1 is): the service adds 127.97.98.97/32 to lo0 as an alias
before the listener starts and takes it off after it closes (and at
uninstall). Neither survives a restart.
NetShield reads where lookups went before from configd's resolver list
(scutil --dns, every 5 seconds): the default resolver (the primary
network's servers, those set by hand in System Settings, or a full-tunnel
VPN's) is where every question goes; names under a resolver's domain go to
its servers first. Its own resolver and the interface-scoped ones are left
out.
Failing open on macOS:
- A temporary key. The entry is added with
scutil'sadd … temporary(SCDynamicStoreAddTemporaryValue): configd removes it the moment the session that made it ends, however it ended, and never writes it to disk. A restart starts without it; the service puts it back once its resolver answers. - A guard process holds the session, not the service:
famsvc service netshield-guard, ABA's own program, started by the service with a pipe between them, in its own process group, running the system's/usr/sbin/scutilas its session. The guard ends (and with it the session, and the key) when:- the service is gone: its end of the pipe closes (killed with
kill -9, crashed, stopped by launchd, updated, uninstalled); - ABA's resolver stops answering: it asks it the check name once a second, and three misses in a row end it (a service that hangs, or is stopped with SIGSTOP; the resolver lives in the service);
- the key is taken out by someone else (
aba netshield offfrom a terminal removes the key itself, whatever the service is doing); - it's asked to (the service switching NetShield out, stopping). It switches in only once the resolver answers.
- the service is gone: its end of the pipe closes (killed with
- The service watches the guard: the guard says it's alive every second; one that's silent for 6 seconds (stopped, hung) is killed, which ends its session too, and a fresh one is started. A guard that ended by itself is replaced within 5 seconds, once the service answers again.
- launchd starts the service again (KeepAlive, 2 s).
Why only ABA's address in the entry, not the network's servers after it: mDNSResponder moves on to a resolver's next server when one doesn't answer in time and stays there for a while; measured in the VM with the network's server listed second, a single stall of ABA's resolver sent every lookup straight to the network's server, unfiltered, for longer than the test ran after ABA was answering again. Failing open is done by taking the entry out instead.
What's left: the service and the guard both stopped (SIGSTOP) leaves the entry in place with nothing answering: lookups fail until one of them runs again or the Mac restarts. That takes a deliberate act by root (which could equally change the DNS settings itself); a crash, a kill, a hang of the service alone or of the guard alone all fail open.
NetShield stands back (and says why, in aba doctor) when another program
already has a resolver for every name (a VPN or DNS app that set a
supplemental resolver with an empty match domain: two can't both be first).
What it can't tell from configd's settings, and so finds out from its check
instead: an encrypted DNS setting (a configuration profile with a DNS
Settings payload, or a DNS app using NetworkExtension's DNS settings) and
iCloud Private Relay send lookups elsewhere, over DoH/ODoH, without
showing in scutil --dns. The check (a lookup of
netshield-check.aba.example through the system, right after switching in
and every five minutes) then doesn't reach NetShield; after three misses it
steps out of the way, and the reason it gives names these. Neither could be
tested in the VM (no Apple account in it, and profiles need a person to
approve them in System Settings).
What it can't see (stated in the app too)
- Browsers' own encrypted DNS (DNS over HTTPS) skips the system's DNS. Firefox: handled for its automatic mode by the canary above; a Firefox with "Max Protection" set by hand skips NetShield. Chrome and Edge: their "Use secure DNS" upgrade only happens with known DoH providers, and they fall back to the system's resolver when NRPT rules exist (Chromium's Windows DNS config reader treats any NRPT rule as "unhandled" and uses the system), so they go through NetShield unless "secure DNS" is set to a custom provider. The DNS bypass list blocks the public DoH servers and free VPNs/proxies, so a program that tries them falls back to the system. Enterprise policies are out of scope.
- Windows 11's own DoH to the adapter's server: NetShield asks the same server in plain DNS (an encrypted path becomes a plain one on the local network). Noted; not handled.
- Programs that hard-code a DNS server or connect by IP address.
VPNs
The rule: with a VPN connected, NetShield asks the servers the system itself
would ask (the VPN's, in a full tunnel) and blocks what's on the lists; it
doesn't send a question outside the tunnel that the system alone wouldn't
have sent there. (One kind it does send, as Windows does by itself: names
under a network's own DNS suffix, a router's .lan, go to that network's
server during a full tunnel too, since only it knows them.)
Where it can't filter without fighting the VPN (another program in charge of
all of DNS, or a Windows kill switch that lets DNS reach only the VPN's
server), it stands back, says why (app, aba netshield status,
aba doctor), and is back within 5 seconds of the VPN disconnecting.
Tested 30 Nov 2026 with real VPN software against a VPN server of our own in
the lab (Ubuntu VM: WireGuard, OpenVPN 2.6 full and split with pushed DNS,
dnsmasq answering a private corp.test and forwarding the rest). Each row:
connect; corp.test names (the VPN's DNS); an ad host six times
(0.0.0.0 each time); a public name; DNS packets on the real network card
outside the tunnel (tcpdump / pktmon); ABA's service killed with the VPN up;
disconnect; reconnect. "Before" is the code before these fixes.
| System | VPN, mode | Before | After |
|---|---|---|---|
| Windows 11 | WireGuard for Windows 0.5.3, full tunnel with its kill switch ("Block untunneled traffic", on by default) | fails: nothing blocked, every lookup ~1 s slower, NetShield said it was on | stands back, says so; lookups fast, only to the VPN; back on disconnect |
| Windows 11 | WireGuard, full tunnel, kill switch off | blocks; fallback list had the LAN's DNS (leak when ABA stops or the VPN's DNS is slow); blocking didn't resume for minutes after a service restart | passes |
| Windows 11 | WireGuard, split tunnel (DNS + corp.test suffix) | blocks; corp.test failed for 10 minutes after a reconnect | passes |
| Windows 11 | OpenVPN 2.6.15 (community, service, DCO), full tunnel with block-outside-dns | fails like WireGuard's kill switch | stands back, as above |
| Windows 11 | OpenVPN, full tunnel without block-outside-dns | blocks; LAN's DNS in the fallback | passes |
| Windows 11 | OpenVPN, split (dns … resolve-domains corp.test: an NRPT rule) | blocks; same reconnect problem | passes |
| Windows 11 | Tailscale-style MagicDNS: NRPT .ts.net rule / "Override local DNS" . rule (emulated, 100.100.100.100) | split passes; . stands back, back up to 60 s after | split passes; . stands back, back within 5 s |
| Ubuntu 24.04 (systemd 255) | wg-quick (sets ~. on its tunnel), full and split | blocks; asked the LAN's DNS past the tunnel whenever the VPN's took 400 ms (14 packets in one test) | passes, 0 packets outside the tunnel, also with the VPN's DNS slowed by 600 ms |
| Ubuntu 24.04 | openvpn + update-systemd-resolved, full tunnel | asked the LAN's DNS first: every name past the tunnel | passes: the VPN's DNS first (resolved itself still asks the LAN too with this script; add dhcp-option DOMAIN-ROUTE . to stop that) |
| Ubuntu 24.04 | the same, split | passes | passes |
| Ubuntu 24.04 | wg-quick / OpenVPN full tunnel + an nftables kill switch (loopback, tunnel and server only, as VPN apps make one) | — | passes |
| Fedora 45 (systemd 262) | NetworkManager WireGuard, full tunnel (~.) | fails: ads blocked on the first lookup only (the VPN's cached answer won after) | passes, six of six blocked |
| Fedora 45 | NetworkManager WireGuard split; NetworkManager OpenVPN full and split | passes | passes |
| macOS 26.6 | wg-quick (wireguard-tools, networksetup DNS), full and split | passes | passes |
| macOS 26.6 | OpenVPN 2.7.9 (dns-updown), full tunnel | fails: nothing blocked, NetShield said it was on | passes |
| macOS 26.6 | OpenVPN 2.7.9, split | passes | passes |
| macOS 26.6 | Tailscale-style "every name" resolver (emulated) | stands back; back up to 60 s after | stands back; back within 5 s |
Everywhere: killing ABA's service with a VPN up kept lookups working (unfiltered, through the VPN) until it was back (Linux: about a second without answers while resolved restarts, as without a VPN); disconnecting restored the network's own DNS; uninstalling with a VPN connected left the VPN's DNS settings exactly as the VPN set them and nothing of ABA's.
Not tested (they need accounts, licences or a person to approve a system extension): commercial VPN apps (NordVPN, Mullvad, Proton VPN, ExpressVPN …), OpenVPN Connect, Tunnelblick, the WireGuard app from the Mac App Store, real Tailscale, Cisco AnyConnect / GlobalProtect, IPv6 inside the tunnel. What they do to DNS is one of the cases above: settings on the tunnel's network (passes), a catch-all of their own (NetShield stands back), or a Windows kill switch (stands back). The one thing NetShield can't tell is a VPN app with its own encrypted DNS inside the app; then its check fails and it steps out of the way (see "fail open").
The DNS bypass list and VPN apps. That list (off by default) blocks VPN
providers' and proxies' sites, so a VPN app can't sign in, pick a server or
connect while it's on; the app (NetShield tab and welcome tour),
aba netshield lists and the terminal setup say so next to its switch. NetShield doesn't unblock the
domains of a VPN that's connected: the lookups that break a VPN app happen
before its tunnel exists (signing in, finding a server), nothing in a
lookup says which app asked (on Windows every lookup comes from the DNS
Client service), and opening the list for whatever looks like a VPN would
open it for the very programs it's there to stop. Instead: leave it off if
you use a VPN app, or unblock your VPN's site in one click from Lately
blocked (it shows there, under "DNS bypass").
App, CLI, Setup
- App: Settings › NetShield (a tab): a hero (switch, state, today's blocks as a ring by kind, pause), the lists behind an expander (collapsed: a row of pucks; "Choose" opens every list with its own switch, its caveat, size and last update), Lately blocked (newest first, each with Unblock), Sites you unblocked (add, remove), and the DoH note. Home: a capsule next to "N baits armed" (blocked today, by kind; hidden while something waits for an answer). Welcome tour: step 4, "Block bad sites", with every list's switch.
- CLI:
aba netshield [on|off|status](on --lists malware,ads),aba netshield lists [<list> on|off],allow <site>,unallow <site>,pause [minutes|off],update,forget(clear the recent blocks). All take--json --yes.aba install --netshield=<lists>|default|all|off. - App actions (
internal/appapi, PARITY.md):netshield(on/off),netshield-list(id: a list, arg on/off),netshield-allow/netshield-unallow(arg: a site, parsed and checked in Go:netshield.ParseSite),netshield-pause(1–1440 or off),netshield-update,netshield-forget. No secrets. - Setup (
ABA-Setup.exe): a "NetShield" page after the traps: "Turn on NetShield (recommended)", and "Choose what to block ▼", an expander with the eight lists (malware and ads ticked). Silent:/NETSHIELD=malware,ads(alsodefault,all,off,1,0); not given = left as it is (off on a first install).install.ps1/install.sh:ABA_NETSHIELD=malware,adswithABA_ARGS='install --yes …'. - Terminal setup: a multi-select, "Block harmful sites with NetShield?" (config version 6: asked once of installs from before).
Counters and privacy
Per category, today (local time): blocked lookups; plus the lookups passed on
and how long the PC's servers took on average; and the last 50 blocked names
(time, name, the listed name it was under, category; repeats within a minute
counted on one line). In <data dir>/netshield/stats.json, administrators
only, written once a minute. Nothing leaves the PC. aba netshield forget or
"Clear" empties the recent list; uninstalling deletes the folder.
Measurements
Memory and speed, all eight categories on (1,852,685 distinct names), Apple
M-series, go test -run TestMeasure with NETSHIELD_MEASURE=1 (it downloads
every list): building the set 63 ms; Go heap +16.6 MB (the set itself
16.7 MB: 9 bytes a name); a lookup (name of 2–10 labels, each parent name
checked) 0.12 µs. A question through the resolver vs straight to the same
server, median of 2,000: +10–15 µs. The two defaults alone: 1.02 M names,
9.2 MB.
Real installs (scripts and logs: ~/aba-vm-lab/netshield/):
- Windows 11 Arm (VMware, linked clone of the lab's clean snapshot),
installed with the real
ABA-Setup.exe(NetShield page, Adult ticked): ad and tracker hosts0.0.0.0, Edge getsERR_NAME_NOT_RESOLVEDfor them and loads normal sites;use-application-dns.netNXDOMAIN; Windows Update, GitHub fine. Uncached lookups, median of 40: 173 ms on, 169 ms off (the VM's NAT DNS; no difference). A split-DNS "VPN" (NRPT rule for.corp.testto its own server) keeps answering. Service killed (Stop-Process -Force): lookups kept working in 2-24 ms through the fallback, unfiltered, for the ~2 s until Windows restarted the service, then blocking resumed. Service killed and disabled, PC restarted: the rule was gone after the restart, lookups normal. Uninstall: the NRPT registry key byte-identical to before install, adapter DNS unchanged. SilentABA-Setup.exe /VERYSILENT /NETSHIELD=malware,gamblingworks; a malformed/NETSHIELD=stops Setup (exit 1). - Linux (Ubuntu 24.04, systemd 255 + systemd-resolved, in a privileged
container), installed with
aba install --yes --netshield=malware,ads: ad hosts0.0.0.0, normal sites and HTTPS fine, a split-DNS link (~corp.teston its own server) still answered by its server.kill -9of the service: the drop-in was gone within 250 ms and lookups kept working; systemd restarted ABA after 2 s and blocking resumed.systemctl stopand uninstall: resolved's settings back to exactly what they were. Also with a DNS server set for the whole system inresolved.conf. Latency through resolved: 114.7 ms vs 113.7 ms straight to the upstream (20 lookups each). - macOS 26.6 (Apple silicon, Tart VM with SIP off, a fresh clone each
run), installed with
aba install --yes --netshield=malware,ads(1,191,933 names, 11.8 MB): ad hosts (adnxs.com,taboola.com,googleads.g.doubleclick.net,pagead2.googlesyndication.com)0.0.0.0/::through mDNSResponder and throughdig(which reads/etc/resolv.conf: configd points it at ABA too); Wikipedia over HTTPS, Apple, GitHub fine;use-application-dns.netno address. A fake VPN's split DNS (a temporary supplemental resolver forcorp.teston its own server) and an/etc/resolver/files.testfile kept being answered by their server. Filtering 0.04 s after the install finished.kill -9of the service: the setting gone in 0.19 s, every lookup kept working; launchd restarted the service and it was filtering again in ~2 s. SIGSTOP of the service (a hang): the setting gone after 4.4–5 s (three missed probes); the one lookup asked at that moment waited until then, every later one was immediate; after SIGCONT, filtering again in 1 s.kill -9of the guard: setting gone in 0.14–0.22 s, a new guard 0.03 s later. SIGSTOP of the guard (the resolver still answering): replaced after ~5 s.aba netshield off: setting gone in 0.09 s, the lo0 alias released, ad hosts resolve at once (cache flushed); still off 8 s later. Service and guard both stopped, then a restart (with the service disabled): no setting and no alias after the restart, lookups normal; a plain restart with ABA enabled: filtering within a second of the Mac answering ssh. Uninstall: in the same boot,scutil --dns, every dynamic store key and every DNS-related value,/etc/resolv.conf,ifconfig lo0,networksetup -getdnsserversof every service and the SystemConfiguration preferences (md5) identical to before the install. Latency through the system, uncached names, median of 40: 0.11 s on and 0.11 s off (the VM's NAT DNS); straight at the resolver vs the upstream withdig, 100 cached questions: 9.70 vs 9.18 ms a question (+0.5 ms, most of itdigitself). Idle CPU over 120 s: the service 0.43 % with NetShield off, 0.74 % on; the guard 0.07 % (scutil --dnsevery 5 s costs ~0.4 ms of CPU). Scripts and logs:~/aba-vm-lab/netshield-macos/.