What's new

AdGuardHome [RELEASE] Asuswrt-Merlin-AdGuardHome-Installer (AMAGHI)

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

For any one wishing to update... I have made several code improvements at the observations of @Markfree 's logs. Also, I have implemented several other code improvements by adding a way for users to reconfigure, which will put the user back at the initial inputs without any potential snapfu additions that may break the users general experience. It also will back up the previous configuration in the process, thus an option is present for the user to use a prevous configuration if they decide they want to go back!. I hope these options will help anyone having accidentally snapful there setup by minimizing the need to reinstall.

-Thank all of you for your support.
I noticed right after reboot before NTP sync, the date is no longer May 5 2018. It seems to show current time even before NTP sync. Is this related to this update?
 
Does adguardhome appear to start much quicker as well?
I could not tell, but it was quick before as well. Now it started right after YazFi is done, which is very good. I have ipset and it is not ready when AGH runs, so it may cause some delay in my case.

Code:
May 17 23:55:24 RT-AC86U-DBA8 AdGuardHome[5672]: 2022/05/17 23:55:24.443836 [fatal] dnsServer.Prepare: initializing ipset: ipset: getting ipsets from config line at idx 0: querying ipset "UnifiTV": netfilter query: netlink receive: no such file or directory

May 17 23:55:26 RT-AC86U-DBA8 (x3mRouting.sh): 9569 IPSET restored: UnifiTV from /opt/tmp/UnifiTV

I just check my log. ipset is ready after a couple of seconds after this message. Probably I will try to introduce some delay before AGH start to see if there is any difference. Anyway, I have no issue with AGH startup time.

Update: try add 3s delay and I don’t hit the error anymore. AGH started almost a minute before YazFi is done.
 
Last edited:
I could not tell, but it was quick before as well. Now it started right after YazFi is done, which is very good. I have ipset and it is not ready when AGH runs, so it may cause some delay in my case.

Code:
May 17 23:55:24 RT-AC86U-DBA8 AdGuardHome[5672]: 2022/05/17 23:55:24.443836 [fatal] dnsServer.Prepare: initializing ipset: ipset: getting ipsets from config line at idx 0: querying ipset "UnifiTV": netfilter query: netlink receive: no such file or directory

I just check my log. ipset is ready after a couple of seconds after this message. Probably I will try to introduce some delay before AGH start to see if there is any difference. Anyway, I have no issue with AGH startup time.
You should notice two starts, one is an early start once the entware Is mounted and ntp is set, and one will appear at the S99 run. This should almost be Negligible the grand scheme of use, but serves to ensure the client names are full updated. I noticed on the first initial run, that this is not always the case. So for a solution there should be two distinct points where adguardhome starts (or restarts).
 
You should notice two starts, one is an early start once the entware Is mounted and ntp is set, and one will appear at the S99 run. This should almost be Negligible the grand scheme of use, but serves to ensure the client names are full updated. I noticed on the first initial run, that this is not always the case. So for a solution there should be two distinct points where adguardhome starts (or restarts).
I got mixed result adding delay. My earlier result is not consistent. Tested few times, I have to increase the delay from 3s to 8s before AGH start in dnsmasq.postconf to avoid the IPSET error message. But then dnsmasq.postconf is called multiple times, so adding delay is not good. I have remove the delay and here is the logs. Hope it is normal.

Code:
May 18 14:32:46 RT-AC86U-DBA8 custom_script: Running /jffs/scripts/service-event (args: restart dnsmasq)
May 18 14:32:48 RT-AC86U-DBA8 custom_script: Running /jffs/scripts/service-event (args: restart dnsmasq)
May 18 14:33:04 RT-AC86U-DBA8 custom_script: Running /jffs/scripts/service-event (args: restart dnsmasq)

Code:
May 18 14:32:46 RT-AC86U-DBA8 S99AdGuardHome[5605]: Started AdGuardHome from S99AdGuardHome[5605].
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.635167 [info] AdGuard Home, version v0.108.0-b.7
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.635282 [info] AdGuard Home is running as a service
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.802485 [info] Initializing auth module: /tmp/mnt/amtm/entware/etc/AdGuardHome/data/sessions.db
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.810105 [info] auth: initialized.  users:1  sessions:3
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.810241 [info] Initialize web module
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.862176 [fatal] dnsServer.Prepare: initializing ipset: ipset: getting ipsets from config line at idx 0: querying ipset "UnifiTV": netfilter query: netlink receive: no such file or directory
May 18 14:32:53 RT-AC86U-DBA8 S99AdGuardHome[5605]: start_AdGuardHome took 8 second(s) to complete.
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.607913 [info] AdGuard Home, version v0.108.0-b.7
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.608536 [info] AdGuard Home is running as a service
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.669554 [info] Initializing auth module: /tmp/mnt/amtm/entware/etc/AdGuardHome/data/sessions.db
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.674598 [info] auth: initialized.  users:1  sessions:3
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.674713 [info] Initialize web module
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.559194 [info] AdGuard Home is available at the following addresses:
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566635 [info] Go to http://127.0.0.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566724 [info] Go to http://127.0.1.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566745 [info] Go to http://192.168.1.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566765 [info] Go to http://<wan ip>:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566785 [info] Go to http://10.10.21.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566803 [info] Go to http://10.10.22.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566822 [info] Go to http://10.7.0.3:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566839 [info] Go to http://10.8.2.2:8089
May 18 14:33:04 RT-AC86U-DBA8 S99AdGuardHome[5605]: Started AdGuardHome from S99AdGuardHome[5605].
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.687980 [info] Received signal "interrupt"
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.688350 [info] stopping AdGuard Home
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.688372 [info] stopping http server...
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.720419 [info] stopped http server
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.723448 [info] Stopped
May 18 14:33:25 RT-AC86U-DBA8 S99AdGuardHome[5605]: Started AdGuardHome from S99AdGuardHome[5605].
May 18 14:33:25 RT-AC86U-DBA8 S99AdGuardHome[5605]: start_AdGuardHome took 22 second(s) to complete.
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.860606 [info] AdGuard Home, version v0.108.0-b.7
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.861185 [info] AdGuard Home is running as a service
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.927995 [info] Initializing auth module: /tmp/mnt/amtm/entware/etc/AdGuardHome/data/sessions.db
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.932861 [info] auth: initialized.  users:1  sessions:3
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.933024 [info] Initialize web module
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.344507 [info] AdGuard Home is available at the following addresses:
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354260 [info] Go to http://127.0.0.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354368 [info] Go to http://127.0.1.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354392 [info] Go to http://192.168.1.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354430 [info] Go to http://<wan ip>:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354453 [info] Go to http://10.10.21.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354491 [info] Go to http://10.10.22.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354513 [info] Go to http://10.7.0.3:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354534 [info] Go to http://10.8.2.2:8089
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808022 [info] Starting the DNS proxy server
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808169 [info] Cache TTL override is enabled. Min=0, Max=3600
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808191 [info] The server is configured to refuse ANY requests
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808211 [info] DNS cache is enabled
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808248 [info] MaxGoroutines is set to 300
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808304 [info] Creating the UDP server socket
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.813129 [info] Listening to udp://[::]:53
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.813233 [info] Creating a TCP server socket
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.813385 [info] Listening to tcp://[::]:53
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.836579 [info] Entering the tcp listener loop on [::]:53
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.836762 [info] Entering the UDP listener loop on [::]:53
 
I got mixed result adding delay. My earlier result is not consistent. Tested few times, I have to increase the delay from 3s to 8s before AGH start in dnsmasq.postconf to avoid the IPSET error message. But then dnsmasq.postconf is called multiple times, so adding delay is not good. I have remove the delay and here is the logs. Hope it is normal.

Code:
May 18 14:32:46 RT-AC86U-DBA8 custom_script: Running /jffs/scripts/service-event (args: restart dnsmasq)
May 18 14:32:48 RT-AC86U-DBA8 custom_script: Running /jffs/scripts/service-event (args: restart dnsmasq)
May 18 14:33:04 RT-AC86U-DBA8 custom_script: Running /jffs/scripts/service-event (args: restart dnsmasq)

Code:
May 18 14:32:46 RT-AC86U-DBA8 S99AdGuardHome[5605]: Started AdGuardHome from S99AdGuardHome[5605].
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.635167 [info] AdGuard Home, version v0.108.0-b.7
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.635282 [info] AdGuard Home is running as a service
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.802485 [info] Initializing auth module: /tmp/mnt/amtm/entware/etc/AdGuardHome/data/sessions.db
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.810105 [info] auth: initialized.  users:1  sessions:3
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.810241 [info] Initialize web module
May 18 14:32:46 RT-AC86U-DBA8 AdGuardHome[5702]: 2022/05/18 14:32:46.862176 [fatal] dnsServer.Prepare: initializing ipset: ipset: getting ipsets from config line at idx 0: querying ipset "UnifiTV": netfilter query: netlink receive: no such file or directory
May 18 14:32:53 RT-AC86U-DBA8 S99AdGuardHome[5605]: start_AdGuardHome took 8 second(s) to complete.
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.607913 [info] AdGuard Home, version v0.108.0-b.7
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.608536 [info] AdGuard Home is running as a service
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.669554 [info] Initializing auth module: /tmp/mnt/amtm/entware/etc/AdGuardHome/data/sessions.db
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.674598 [info] auth: initialized.  users:1  sessions:3
May 18 14:33:03 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:03.674713 [info] Initialize web module
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.559194 [info] AdGuard Home is available at the following addresses:
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566635 [info] Go to http://127.0.0.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566724 [info] Go to http://127.0.1.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566745 [info] Go to http://192.168.1.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566765 [info] Go to http://<wan ip>:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566785 [info] Go to http://10.10.21.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566803 [info] Go to http://10.10.22.1:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566822 [info] Go to http://10.7.0.3:8089
May 18 14:33:04 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:04.566839 [info] Go to http://10.8.2.2:8089
May 18 14:33:04 RT-AC86U-DBA8 S99AdGuardHome[5605]: Started AdGuardHome from S99AdGuardHome[5605].
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.687980 [info] Received signal "interrupt"
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.688350 [info] stopping AdGuard Home
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.688372 [info] stopping http server...
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.720419 [info] stopped http server
May 18 14:33:15 RT-AC86U-DBA8 AdGuardHome[16910]: 2022/05/18 14:33:15.723448 [info] Stopped
May 18 14:33:25 RT-AC86U-DBA8 S99AdGuardHome[5605]: Started AdGuardHome from S99AdGuardHome[5605].
May 18 14:33:25 RT-AC86U-DBA8 S99AdGuardHome[5605]: start_AdGuardHome took 22 second(s) to complete.
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.860606 [info] AdGuard Home, version v0.108.0-b.7
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.861185 [info] AdGuard Home is running as a service
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.927995 [info] Initializing auth module: /tmp/mnt/amtm/entware/etc/AdGuardHome/data/sessions.db
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.932861 [info] auth: initialized.  users:1  sessions:3
May 18 14:33:25 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:25.933024 [info] Initialize web module
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.344507 [info] AdGuard Home is available at the following addresses:
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354260 [info] Go to http://127.0.0.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354368 [info] Go to http://127.0.1.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354392 [info] Go to http://192.168.1.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354430 [info] Go to http://<wan ip>:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354453 [info] Go to http://10.10.21.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354491 [info] Go to http://10.10.22.1:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354513 [info] Go to http://10.7.0.3:8089
May 18 14:33:26 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:26.354534 [info] Go to http://10.8.2.2:8089
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808022 [info] Starting the DNS proxy server
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808169 [info] Cache TTL override is enabled. Min=0, Max=3600
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808191 [info] The server is configured to refuse ANY requests
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808211 [info] DNS cache is enabled
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808248 [info] MaxGoroutines is set to 300
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.808304 [info] Creating the UDP server socket
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.813129 [info] Listening to udp://[::]:53
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.813233 [info] Creating a TCP server socket
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.813385 [info] Listening to tcp://[::]:53
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.836579 [info] Entering the tcp listener loop on [::]:53
May 18 14:33:37 RT-AC86U-DBA8 AdGuardHome[19707]: 2022/05/18 14:33:37.836762 [info] Entering the UDP listener loop on [::]:53
In general, it looks fine. I got a few code improvements in mind, but nothing critical. I stumbled on a bug with adguardhome last night. The bug was on edge AdGuardHome. Adguardhome simply refused to start with syslog as the logger. It returned a Unix error I have never seen before. Ironically rebooting the router made the error go away.
 
In general, it looks fine. I got a few code improvements in mind, but nothing critical. I stumbled on a bug with adguardhome last night. The bug was on edge AdGuardHome. Adguardhome simply refused to start with syslog as the logger. It returned a Unix error I have never seen before. Ironically rebooting the router made the error go away.
I think I put the delay in the wrong place. I put it in dnsmasq.postconf. Now I add 5s delay in init-start and no longer see the startup ipset error. AGH consistently ready about a minute after ntp clock set.
I had some error with edge back in March and moved to beta. I have dns.weixin.qq.com in blacklist and get the following error.

Code:
Mar 14 21:47:36 RT-AC86U-DBA8 AdGuardHome[5185]: 2022/03/14 21:47:36.629507 [error] rules.NewNetworkRule: invalid domain specified: wx*.qq.com|weixin.qq.com rule: ||qq.com^$denyallow=wx*.qq.com|weixin.qq.com
 
I think I put the delay in the wrong place. I put it in dnsmasq.postconf. Now I add 5s delay in init-start and no longer see the startup ipset error. AGH consistently ready about a minute after ntp clock set.
I had some error with edge back in March and moved to beta. I have dns.weixin.qq.com in blacklist and get the following error.

Code:
Mar 14 21:47:36 RT-AC86U-DBA8 AdGuardHome[5185]: 2022/03/14 21:47:36.629507 [error] rules.NewNetworkRule: invalid domain specified: wx*.qq.com|weixin.qq.com rule: ||qq.com^$denyallow=wx*.qq.com|weixin.qq.com
Make sure you properly add the sleep by encapsolating the line in ( ) and throwing an & at the end. Otherwise maybe the sleep delays other processes unintentionally.

Something like

(sleep 5 && command )& #comments.

The comments you can leave outside your ( )&. Also remember any time you update you may have to remove an extra line if it somehow gets added. (Don't think it will though).
 
Make sure you properly add the sleep by encapsolating the line in ( ) and throwing an & at the end. Otherwise maybe the sleep delays other processes unintentionally.

Something like

(sleep 5 && command )& #comments.

The comments you can leave outside your ( )&. Also remember any time you update you may have to remove an extra line if it somehow gets added. (Don't think it will though).
Thanks, I will edit it to follow your format. Earlier I was not sure if your script may check and replace it again. Since AGH init start is the last script in init-start, I just put sleep one line before it.
 
Thanks, I will edit it to follow your format. Earlier I was not sure if your script may check and replace it again. Since AGH init start is the last script in init-start, I just put sleep one line before it.
Yea I think the sleep 5 delays everything else by 5 seconds as well unless you tell it to do so in the background. (Not sure if init-start holds up the boot process).
 
may I replace this

[/router.asus.com/][::]:553
[/www.asusnetwork.net/][::]:553
[/www.asusrouter.com/][::]:553
[/use-application-dns.net/][::]:553
[/dns.resolver.arpa/][::]:553
[/domen-asus/][::]:553
[//][::]:553
1.1.1.2
9.9.9.9
tcp://1.1.1.2
tcp://9.9.9.9

to this (like on my pi3 adguard home)



will it work?



PS
on Wan page:
DNS-1
1.1.1.2

DNS-2
9.9.9.9

Forward local domain queries to upstream DNS no
Enable DNS Rebind protection yes
Enable DNSSEC support yes
Validate unsigned DNSSEC replies no
Prevent client auto DoH No
DNS Privacy Protocol None
 
may I replace this

[/router.asus.com/][::]:553
[/www.asusnetwork.net/][::]:553
[/www.asusrouter.com/][::]:553
[/use-application-dns.net/][::]:553
[/dns.resolver.arpa/][::]:553
[/domen-asus/][::]:553
[//][::]:553
1.1.1.2
9.9.9.9
tcp://1.1.1.2
tcp://9.9.9.9

to this (like on my pi3 adguard home)



will it work?



PS
on Wan page:
DNS-1
1.1.1.2

DNS-2
9.9.9.9

Forward local domain queries to upstream DNS no
Enable DNS Rebind protection yes
Enable DNSSEC support yes
Validate unsigned DNSSEC replies no
Prevent client auto DoH No
DNS Privacy Protocol None
Listen, you can do what ever you would like, it is your choice. First let me tell you everything this installer does in the initial setup:

This installer places the appropriate entries inside both dnsmasq, and AdGuardHome for your AdGuardhome to have a close relationship with DNSmasq(the distributor of DHCP to clients). This relationship allows for DNSmasq to relay client information back to AdGuardHome. This information allows for Adguardhome to know the hostname of the device and how to resolve the router back to specific router addresses.
Code:
[/router.asus.com/][::]:553 # needed to resolve back to the router by router specific address's

[/www.asusnetwork.net/][::]:553 # needed to resolve back to the router by router specific address's

[/www.asusrouter.com/][::]:553 # needed to resolve back to the router by router specific address's

[/use-application-dns.net/][::]:553 # needed to leverage part of the routers AUTO DOH prevention

[/dns.resolver.arpa/][::]:553 # needed to leverage part of the routers AUTO DOH prevention

[/domen-asus/][::]:553 # needed for client identification by hostname

[//][::]:553 # prevents resolving of certain types non existant names or non existant hostnames
In retrospect, this information also allows for you to be able to resolve addresses that point back to the router, like router.asus.com, www.asusnetwork.net, and www.asusrouter.com. Also, use-application-dns.net , resolves back to DNSMASQ which allows use of the routers prevention of Firefox to AUTO DOH. It also points back to your user chosen domain which is for client identification purposes. All of these entries are added with proper consideration of the users setup. If you choose to remove them, that is your choice. But I hope you understand the considerations you lose out on.

The only sections I would edit is:

Code:
1.1.1.2
9.9.9.9
tcp://1.1.1.2
tcp://9.9.9.9

replacing it with

Code:
https://security.cloudflare-dns.com/dns-query
https://freedns.controld.com/p1
https://doh.opendns.com/dns-query
 
Last edited:
Having issue where adguardhome doesn't start up during boot. I manually start it. Also having issue where it stops responding and restarting it manually is all that fixes it.
 
Having issue where adguardhome doesn't start up during boot. I manually start it. Also having issue where it stops responding and restarting it manually is all that fixes it.

You have not given any information that anyone can use to help you out in solving your issue. Router make? Firmware Version? Logs? etc. The logs in particular may go a long way in finding out what is going wrong.

Cheers
 
Having issue where adguardhome doesn't start up during boot. I manually start it. Also having issue where it stops responding and restarting it manually is all that fixes it.
Like @Jeffrey Young has mentioned, you need to provide more information. On my setup, I am having no troubles with AdGuardHome. There might be something specific to your setup that may be cause for concern. Or something we need to take a look at, but we need to know specifics. Logs is one of the biggest helpful tools you have at your disposal. I recommend rebooting your router and collecting as much of the boot process logs as possible (first 10 minutes after boot should work). This would indicate what process's are running and where there may be conflicts.
 
I just wanted to let everyone know I took the time to attempt to add us to the list of adguardhome supported platforms.


We will see if we get a bite, but either way I want everyone to know I intend to keep this running either way. I appreciate you all!
And most importantly I want to give a dedicated thank you to @RMerlin, @gspannu , @thelonelycoder , @chongnt , @dave14305 , @Jack Yaz , @juched , @TheMorpN , @garycnew , @cptnoblivious , @ColinTaylor , @octopus , @Zastoff , @Viktor Jaep , and @L&LD for all your contribution to anything on SNB. You guys are great! And thank you for all your contributions!
I have to say with all the devs and contributor contribution to the Asus Router , I feel more secure and my purchase of the router double it value. =)
 
I have to say with all the devs and contributor contribution to the Asus Router , I feel more secure and my purchase of the router double it value. =)
I would like to take the time to mention any one who wants to contribute to those who contribute or developed for us, here is the link for all devs that take donations,


And for anyone who wants to donate to RMerlin, there is a link on his contact page,

 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top