• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Enable/Disable firewall rules with Cron or another solution

Scheduled Pinned Locked Moved Firewalling
3 Posts 2 Posters 131 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N
    nbk333
    last edited by Feb 2, 2025, 8:01 PM

    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,

    K 1 Reply Last reply Feb 2, 2025, 8:27 PM Reply Quote 0
    • K
      keyser Rebel Alliance @nbk333
      last edited by keyser Feb 2, 2025, 8:27 PM Feb 2, 2025, 8:27 PM

      @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

      Love the no fuss of using the official appliances :-)

      N 1 Reply Last reply Feb 2, 2025, 9:24 PM Reply Quote 1
      • N
        nbk333 @keyser
        last edited by Feb 2, 2025, 9:24 PM

        @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!

        1 Reply Last reply Reply Quote 0
        1 out of 3
        • First post
          1/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received