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 201 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

      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,

      keyserK 1 Reply Last reply Reply Quote 0
      • keyserK
        keyser Rebel Alliance @nbk333
        last edited by keyser

        @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 Reply Quote 1
        • N
          nbk333 @keyser
          last edited by

          @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
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.