Ethernet Layer 2 rules and Schedules not working
-
I have a block rule setup under Ethernet rules, where all traffic is blocked for a MAC address based on a schedule.
The issue is that the schedule does not work, I have to manually reload filters to activate/deactivate it.
For example, if the schedule is inactive, the rule will not enable when it is scheduled to. The MAC address never gets blocked.
If the schedule is active, then the rule never gets disabled when the scheduled time is finished. The MAC address stays blocked forever until I reload filters manually.I have also tried doing the opposite. Have an allow rule scheduled while always having a block rule, but the same issue arises. The allow rule does not follow the schedule.
As a last resort, I am going to try to find the command to reload filters and setup a hourly cron job.
EDIT: The command is/usr/local/sbin/pfSctl -c "filter reload"
. Will update post if works/does not work to temporarily fix the issue.
-
I can confirm with the cron job that the schedules work. I timed the command to run when the schedule is timed, so it doesn't need to run every hour.