Enable/Disable firewall rules with Cron or another solution
-
Hello community users,
I have a big problem. At the moment I have two firewall rules which are activated by schedule. Unfortunately I cannot set range in schedule (for example: every monday to every friday 8:00-20:00) therefore I have been trying with the cron unsuccessfully.
My question is: How to enable or disable a firewall rules with cron or another solution because the schedule is not a user friendly option.
Thank you in advance,
-
@nbk333 Ehhm, I’m not quite sure what you mean?
You can easily create a schedule like you describe (fx. Weeksdays 8:00 -> 20:00).Have you read the guide to how tu use the schedules interface? I will agree though - not very intuitive as one could be lead to believe the specific month is always part of the schedule.
https://docs.netgate.com/pfsense/firewall/time-based-rules.html
-
@keyser I was also surprised that you can't set a time interval. I didn't notice that if I click on the days (header) it doesn't give you a specific date, but the days in general. Thanks for the help!