Have I read correctly, that scheduling only works with manual state refresh?

Started by JohnBee, April 07, 2025, 03:50:24 AM

Previous topic - Next topic
I've been struggling with Opnsense scheduling for awhile now, and came-across a thread which appears to say that scheduling only works if/when the states table is manually refreshed?

That said, I just wanted to confirm whether or not, that was actually the case?

That's a hoax. Presumably the writer did something wrong and hence made bad experience with schedules.

However, you have to observe a rule: use schedules only in pass-rules.
And ensure, that Firewall: Settings: Advanced: Schedule States is unchecked, which is the default setting, however.

So I guess, you also did something wrong. But maybe, this helps to get your setting work.

Quote from: viragomann on April 07, 2025, 12:53:30 PMThat's a hoax. Presumably the writer did something wrong and hence made bad experience with schedules.

However, you have to observe a rule: use schedules only in pass-rules.
And ensure, that Firewall: Settings: Advanced: Schedule States is unchecked, which is the default setting, however.

So I guess, you also did something wrong. But maybe, this helps to get your setting work.
|
Hi and thanks so much for responding

I've been trying to use scheduling for some time now with little success - here's my setup;

I have an alias - MAC address
I also have a schedule

I then created a block rules for said alias and confirmed it to be working.
And finally, I created a pass rule for said alias' based on my set schedule


That being said, and upon observing the scheduling behaviour, I can confirm that while the indicators(icons) do change according to scheduling(from green to white), that the user will continue to have internet for as long as they are connected.

In addition to this, I have also observed that the rule will take effect immediately if I refresh the states table, thus leading to ask whether there might be an standing issue with rules being refreshed at the state level.

And finally, it has also been my observation that this does not happen with Zenarmor, in-that Policy based scheduling appears to work perfectly

Any ideas?