Aguardhome on WRT

So AdGuard Home is killing me. I've reset my WRT router about 5 times now.

I ended up looking for a more straightforward step-by-step for beginners tutorial, and I came across this one.

The only catch is that it is by a very small YouTube channel(does not always mean bad), and I'm a bit concerned about following it and using the scripts while in ssh.

I would be grateful if someone could look over this and let me know if it is legit or not, specifically the "manual method."

I'm trying to learn all this stuff in my spare time, but it is heavy material.

Here is the tutorial.

If you have issues with some 3rd party guide, reach out to the creator for assistance.

Try https://openwrt.org/docs/guide-user/services/dns/adguard-home instead.

I so far have no issue with a 3rd party guide. My aim was to have it verified by someone who is familiar with this stuff. This was the simplest guide to follow for me.

I tried the one in the link you posted and have not had any luck.

Manual method installs AGH directly from the official site, not the Openwrt package repo.

Not sure how updating will work in this scenario, since updates won't come from "here".
I wouldn't go down this road.

would you mind elaborate what exactly was not working? first specifying your environment (router model to start with), how you wanted to setup (e.g. on which interface(s)) etc. sorry to say but you said nothing useful to allow anyone to help as nobody knows anything other than you failed 5 times. this is not enough info. so please tell us details so we can help.

No problem. I will try to elaborate.

Basically, the tutorial from OpenWRT is too complicated for me. I scroll down, and the letters, numbers, and characters are all too much. Since I'm a begginner I don't grasp any of it, while the link I posted seems more straightforward. I ssh into the router and paste the script that was provided. I just don't understand the tutorial from OpenWRT. It is not for a begginner where as this one seems pretty simple.

I did not even try the OpenWRT tutorial because frankly, I don't understand it, and just wanted to double-check this tutorial before I used the script.

The link you posted does pretty much the same thing, with less text.

If you install AGH from the Openwrt repo, you can do the rest by following the link you posted.

So there is nothing in the script from the "manual method" that looks concerning?

I did try to compare the one I posted to the openwrt one and I did see some things that where the same such as switching the dnsmasq port to 54 to leave adguard on 53 but I just wanted to be sure.

By repo you mean the repository on the luci gui or via ssh? Is there a difference because I saw on the luci gui you can also install adguardhome from there?

Thanks for taking the time to have a look at the link.

it doesn't do much :slight_smile:
do the manual install starting step 4, after installing AGH from the repo.

yes

they're the same.

"it doesn't do much" Ha! Let me be more specific if you don't mind answering.

Is there any malicious intent or script there?

If it is the setup required to start adgaurad than that's all I need it to do.

Thanks for your patience. I understand dealing with laymen folks with these matters can be a bit exhausting.

there's no script, just commands, and they're required.

not required, but probably to get it working the way you want it to work ,)

you can skip step 5, and step 6 shouldn't be executed if you use the package from the openwrt repo.

instead you should run:

service adguardhome enable
service adguardhome start

Keep in mind, if you get the dnsmasq settings wrong, your router will stop providing IPs via the DHCP to your clients.

Ah, thank you very much.

Thanks for clarifying. If I learned one thing from being on Arch, it's not to mess with scripts and commands you don't understand. I don't even touch the AUR.

That I figured out the experience way.

Which I assume is to stop the ads' network-wide?

probably just "working" ,)

I guess I'll find out. i'll chalk it up to a learning experience.

Thanks for the answers and your patience.

FYI, following the guide you posted, will most likely break DNS lookups for the router itself, you might need to apply AdGuard Home, opkg and ping on router not working - #7 by frollic.

1 Like

No idea what that is and looking at your link I already see it is on a level I'm not at yet.

I guess I leave it for now.

Thanks for warning.

edit file /etc/adguardhome.yaml using winscp from your Windows box, add IP or change to 0.0.0.0.
done.

another option is to add echo "namserver 8.8.8.8" >> /etc/resolv.conf to /etc/rc.local, before the exit 0 line.

I can understand it looks complicated so one step back, why do you want/need AGH in the first place?
Maybe there are simpler solutions.
My main router is still an older R7800 which does not have so much CPU power and AGH is a resource and memory hog but I am perfectly happy with dns-https-proxy for secure DNS and an adblock package for adblocking.
Of course I do not have the shiny AGH interface and all the logging options :frowning:

I like the ease of network wide ad blocking and because I find learning this stuff interesting. It's a new interest hence the beginner status.

Do you have another solution?

then you should go with the openwrt instruction instead ?

@egc offered an alternative solution ?

1 Like