Cron Job "Update and reload firewall aliases" not working

Started by Wrigleys, September 24, 2024, 06:22:17 PM

Previous topic - Next topic
Hi all

I would like to update my URL Tables (Aliases) at specific times during a day (eg. 6PM) and setup a specific Cron Job for that case "Update and reload firewall aliases".

I see the Log-Entry for it, but no Aliases gets updated:
2024-09-24T18:00:00 Notice configd.py [7d88bb16-4d1d-41bd-91a1-60eeb3b86689] refresh url table aliases

Does this Cron Job work for you or are you all using the "Refresh Frequency" attribute inside the URL Table Alias?

Updating URL Tables with "Refresh Frequency" setup works, but the updates will not occur on a specific time (eg. 6PM).

Many thanks for your help.

All the best,
Wrigleys

It's the job to check for refresh-able aliases. Keep your refresh frequency below the cron interval and it will always update (unless it has been updated before for another reason/reload).


Cheers,
Franco

September 24, 2024, 10:22:01 PM #2 Last Edit: September 25, 2024, 06:40:11 AM by Wrigleys
Many thanks franco. Fully understand your point.
Sorry for my additional question:
As far as I read inside this forum and github, the refresh frequency of any alias will be checked every minute and be fetched/updated automatically without any triggered cron job.

Possible source: https://github.com/opnsense/core/commit/c5555b2ebc4c2285fb40d3a1a22c1966820bc64e

Therefore, I assume that the cron job will never be fast enough to update any aliases before the aliases will do it by itself. It checks every minute and will fetch/updates it once the refresh frequency is over.

So can it be, that this cron job has no right to exist anymore? 😉

Or does fetching the Alias not updates the according NAT/Rules? Is the update and reload cron job always needed?

Many thanks and take care,
Wrigleys