Skip to content
MateusBMP edited this page Nov 16, 2026 · 6 revisions

blockads-linux

System-wide blocking of ads, trackers, malware and phishing domains for Linux desktops. It is a port of blockads-android that uses the same filter catalog and rule syntax, adapted to Linux.

Status: pre-alpha. The filter engine, DNS resolver, list updates, query log and statistics, root firewall helper, system integration (systemd, D-Bus, polkit), GUI with tray icon, trusted networks and the Android settings import all work. There are no distribution packages yet (that is the next milestone, see Roadmap).

How it works, in one paragraph

A sandboxed local DNS filter (blockadsd) answers on the privileged loopback port 153. While protection is on, iptables nat OUTPUT rules redirect every outgoing port-53 DNS query to it. There is no TUN "VPN", and routing, /etc/resolv.conf and NetworkManager are never modified. If anything goes wrong, the rules are removed and DNS keeps working unfiltered (fail-open). The rules are never saved, so a reboot always starts clean.

Principles

  • Stability and guaranteed rollback. Every firewall change is verified after it is applied and can always be reverted, even without Python.
  • Fail-open + alert. A crash, hang or flushed rule set means DNS works unfiltered and the tray icon turns red; systemd retries.
  • Least privilege. Only a small, stdlib-only helper runs as root, and only from systemd hooks or pkexec.
  • No telemetry. The only network contacts are the DNS upstream you chose (Quad9 over DoH by default) and the original publishers of the filter lists you enabled. Lists are compiled locally.

Pages

License

GPL-3.0, the same as blockads-android. The ported parser logic, the catalog and the DoH list are derived works, credited in NOTICE and on the About page.

Clone this wiki locally