For DNS ad blocking on an OpenWrt router with tight RAM, consider Adblock-Fast. It prepares lists for your DNS resolver and exits. Choose Adblock for its feed controls, AdGuard Home for a standalone filtering DNS server, or banIP for firewall rules that match IP addresses. Adblock-Fast guide, Adblock README, AdGuard Home setup guide, banIP README
What each tool needs RAM for
| Tool | Where filtering happens | How to read the RAM guidance |
|---|---|---|
| Adblock-Fast | Builds a list for dnsmasq, SmartDNS or Unbound. | The maintainer describes the default list selection as suitable for routers with limited RAM. Maintainer guide |
| Adblock | Builds domain lists for an existing DNS backend. | The package README sets a support floor of 128 MB of total RAM. With the default directories, feed backups and the generated list stay in RAM between updates. Package README |
| AdGuard Home | Runs its own filtering DNS server. | In the v0.107-series discussion, an AdGuard maintainer recommends smaller lists on devices with less than about 1 GiB of RAM. The maintainer ties memory use during a refresh to the total size of the enabled lists. Setup guide, Maintainer guidance |
| banIP | Filters packets by source or destination IP address using nftables sets. | Loading firewall rules and set entries together can use substantial memory. The README gives tuning advice for routers with 256–512 MB of RAM. Start with a small set of feeds. Package README |
How to reduce memory pressure
- Adblock-Fast. On routers with less RAM than the guide specifies for its default lists, remove lists the router can’t handle. With dnsmasq, the documented lean mode can use a prebuilt dnsmasq configuration file and skip local list processing. Maintainer guide
- Adblock. On a router in the README’s low-memory range, set
adb_coresto1to use single-threaded processing. If backups are on external storage, enableadb_dnsshiftto store the generated list there too. Package README - AdGuard Home. Below the AdGuard maintainer’s RAM guideline, use smaller filter lists, such as the mini variants of HaGeZi’s lists. Maintainer guidance
- banIP. For routers in the README’s low-memory range, it gives
ban_splitsizeset to1024as an example. This splits the load of an external set after every 1,024 lines or entries. Package README
How to check memory on your router
In the router’s shell, run the following and record MemAvailable. It estimates how much memory the system can make available for new applications without swapping. Linux kernel memory documentation
cat /proc/meminfo
| When to read it | What to record |
|---|---|
| Before a list refresh | Record MemAvailable as a baseline. |
| During a list refresh | Repeat the command during the refresh. |
| After the refresh finishes | Record MemAvailable again. AdGuard Home update discussion |
Evidence and limits. The OpenWrt package READMEs on master, the Adblock-Fast maintainer guide, AdGuard Home’s v0.107-series memory guidance and the Linux kernel documentation were checked on November 26, 2026. The checks were not run on a router for this article.