OpenWrt news, tools, tips and discussion. Related projects, such as DD-WRT, Tomato and OpenSAN, are also on-topic.
Beginner in OpenWRT : Can't set Adguard home as my DNS for all my networks
Hi,
I am new to OpenWRT and managed to have my network configured as well as a guest network. Now I'm trying to put everything behind Adguard Home. I tried to follow this guide : https://openwrt.org/docs/guide-user/services/dns/adguard-home#installation
But after doing so I have 2 problems :
-
The guest network no longer have DNS access (so no internet)
-
OpenWRT doesn't have internet access (so it can't download opkg packages for example)
Adguard works only for my main network. Could someone help me to set it up properly ? I can't find how.
I made a post about this with my whole config : https://forum.openwrt.org/t/adguard-home-as-my-primary-dns-doesnt-work-for-guests/155083
By the way, I am new to OpenWRT so if you see errors or bad things in my config, or have tips to improve it, I'm very interested.
Thanks in advance for any answer, have a great day

I don’t see the config for AGH itself. Did you configure it properly first?
— Starfox
Thanks a lot for your answer.
I configured it properly, I did the initial config. But the problem is that during this initial config, I can only choose 1 interface on which AGH will listen for the DNS.
I couldn't find those setting anywhere in Adguard unless in the initial configuration that I can no longer access. What was listed was the interfaces and networks I have here in my config file, which means I had to choose between br-lan and br-guest. I chose br-lan. But I couldn't find a way to make it work for both br-lan, br-guest and the internal openwrt internet access for its features. So technically I think AGH works as expected, but I have a problem for adapting my network to be fully compatible.
My adguardhome config file only contains this :
config adguardhome config # Where to store persistent data by AdGuard Home option workdir /var/adguardhome
And this folder only contains :
root@OpenWrt:/tmp/adguardhome/data# ls filters sessions.db stats.db
So I'm not sure how to access the settings from outside of AGH
I don't have a guest network, but I did install Adguard and now can't download opkg just like you. Let me know if you get a fix.