OPNsense Forum

English Forums => 25.1, 25.4 Series => Topic started by: gctwnl on August 31, 2025, 02:14:59 PM

Title: FW rule schedule "daily from 09:00-17:00"?
Post by: gctwnl on August 31, 2025, 02:14:59 PM
I was looking at scheduling FW rules but it seems they work on a calendar one year in advance max. Am I correct in concluding it isn't possible to create a schedule that is more crontab like, like "every day from 09:00-17:00" or "every Sunday from 10:00-12:00"?
Title: Re: FW rule schedule "daily from 09:00-17:00"?
Post by: patient0 on August 31, 2025, 02:57:59 PM
Quote from: gctwnl on August 31, 2025, 02:14:59 PMAm I correct in concluding it isn't possible to create a schedule that is more crontab like, like "every day from 09:00-17:00" or "every Sunday from 10:00-12:00"?
You can do it, the interface is just quite confusing.

You select the header of the column(s) (not the days) in a month (any month), 'Mon', 'Tue', ... that is the way to say every <whatever days you selected>.

If you then change to another month, you'll see that the days are already selected. Additionally you select the time and voila.

opnsense_firewall-rule-schedules.jpeg
Title: Re: FW rule schedule "daily from 09:00-17:00"?
Post by: gctwnl on August 31, 2025, 03:29:47 PM
Thanks! That makes it a lot easier. I was already looking at creating a custom script using pcftl, aliases, and a cron job.