Openwrt + AdGuard + stubby

I want to have OpenWRT with AdGuard and stubby installed for adfree and dns protected navigation.

My country the most available are TP-LINK and BPI (banana pi)

What is the minimum specs i should look for?

The amount of flash is 128MB, with 128MB of RAM is good enough?
Will i need more?
Witch CPU is recomended?

Is it possible to run in one of basic routers?

Like this one (BPI WiFi 6 OpenWRT)
https://www.aliexpress.com/item/1005006608696724.html?spm=a2g0o.store_pc_allItems_or_groupList.0.0.66a57a25f4lg3R&pdp_npi=4%40dis!BRL!R%24%20363%2C70!R%24%20159%2C32!!!63.59!27.86!%402101c97017269308775206722e3ecd!12000037810387129!sh!BR!0!X&_gl=1*19zspyk*_gcl_au*NTY1MzQ4NjE1LjE3MjY5MzAxMDA.*_ga*OTI2Nzg1MTI4LjE3MTczNTMyMjQ.*_ga_VED1YSGNC7*MTcyNjkzMDEwMC4yLjEuMTcyNjkzMDg4MC40OC4wLjA.

Or i need somenthing top of the line like BPI-R3 or BPI-R4 ?

Or sould i have OpenWRT in a basic router and install the AdGuard in a other device like a simple and cheap BPI, like M1 M2?

Thanks a lot for your time in advance!

Not answering your primary question, but I think Adguard supports DoT natively, so there's no need to run stubby with it. (I run stubby because I'm using a dnsmaq-based ad blocker, adblock.)

1 Like

As @efahl said, if you're running AdGuard Home, you don't need stubby for TLS.

I run OpenWRT and AdGuard Home on a 256MB consumer router (Linksys EA7500). I do not use many other software packages, but I have a fairly complex network, I still have dnsmasq providing local DHCP and DNS, and I host a wireguard VPN for remote access. Here's the output of "free":

              total        used        free      shared  buff/cache   available
Mem:         250352       98656       97660       17096       54036       91556
Swap:             0           0           0

So depending on your individual situation, I'm guessing 128MB would work, but it's a little tight and won't leave room for much else.

Edit: Note that is while limiting AdGuard Home's in-memory log rotation to 18 hours and statistics retention to 24 hours. I've got room for a lot more but I don't really need more logging and statistics than that so I might as well save the memory for caching and other purposes. Note also that the number and size of DNS blocklists you use in AdGuard Home will affect memory consumption.

1 Like

Thanks for the reply, i am looking for hardware with 256mb of flash, but the ones i found they are very expensive, or have small flash with adicional memory in other chip not of flash. Like banana pi R3 ou R4.
Any other options or sugestions?

Thanks!

Depends on where you live, doesn't it ?

Keep in mind in most cases 256 mb flash, doesn't give you 256 mb of available space.

With some exceptions, where the flash have been converted from default stock layout, to "Openwrt layout".