I have a MT6000 Flint 2. I have adguard setup with Hagezi’s normal list and thread intelligence. Whenever it updates, the whole network slows down for a few minutes. This is fine but it would be ideal to schedule it to happen at like 3am.
Adguard seems to only have an option for interval like daily and no way to set a time.
I thought I might be able to setup a cron job but i dont know how to autneticate to the adguard api properly. It seems it liked to GL somehow. It seems to use an “Auth-Token” cookie. If I copy it from the browser, it seems to work but I assume it will expire
I thought of this but if the router is ever rebooted, won’t this time get reset to the reboot time?
I did come up with a script that logs into the router, gets a token, then sends the command. The only downside is that I have to store my password in the script so I suppose its not exactly the most secure thing.
This can be configured by using cron to call the AdGuard Home filter refresh API at a fixed time.
After the configuration is completed, the router can refresh the enabled AdGuard Home blocklists every day at 3:00 AM router local time.
In this way, AdGuard Home will be accessed through its own WebUI and native username/password authentication and after this change, AdGuard Home itself will still work, but the AdGuard section or statistics inside the GL.iNet router UI may no longer display it correctly.
Please follow the steps below.
SSH into the router, back up the related files before making changes.
You can change the "0 3" to set your own update time. In cron format, the first number is the minute and the second number is the hour.
6. Enable and restart cron.
/etc/init.d/cron enable
/etc/init.d/cron restart
After this, AdGuard Home will refresh the blocklists automatically every day at 3:00 AM router local time.
Ah, I did something similar (with the help of AI). I noticed that users was blank in the conf so I wasn’t sure if I could just add a user (like you did) without affecting anything.