Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Long-term scheduling of firewall rules?

    Scheduled Pinned Locked Moved Firewalling
    9 Posts 3 Posters 456 Views 3 Watching
    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.
    • H
      hoopy
      last edited by

      Hi,

      I want to schedule one of my firewall rules to only be active for a few hours every two months.

      I know about firewall > schedules, but it only allows for weekly schedules or schedules on specific, pre-determined dates. I would prefer something like crontab's "*/2" notation for the months field, e.g. "16 14 12 */2 *" or, in english "2:15 pm on the 12'th of every second month"

      My use case is that our solar and heating systems "require" internet access "once every three months" for monitoring / updates / maintenance, if we are to keep their extended guarantees. If it wasn't for this contractual obligation I would disconnect them completely and only manually connect them if/when an update was actually required. The existing "weekly" rule is just too frequent for my liking and manually turning the rule on/off is likely to be forgotten at some point.

      Thanks!

      SteveITSS johnpozJ 2 Replies Last reply
      Reply Quote 0
      • SteveITSS
        SteveITS Galactic Empire @hoopy
        last edited by

        @hoopy The scheduler is actually “every” date so “December 12” is not this year it’s every year. So I think just pick a few days to meet your goal.

        To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
        Only install packages for your version of pfSense.
        Upvote 👍 helpful posts!

        H 1 Reply Last reply
        Reply Quote 0
        • H
          hoopy @SteveITS
          last edited by

          @SteveITS thanks for the tip!

          I am a little sceptical / confused however.
          When selecting a month, the drop-down menu shows the month and year, but in the actual schedule (once saved) the year disappears.

          I guess I'll know if it actually works as you suggest in about 14 months ;-)

          SteveITSS 1 Reply Last reply
          Reply Quote 0
          • SteveITSS
            SteveITS Galactic Empire @hoopy
            last edited by

            @hoopy I suggested a doc update, see the Redmines
            https://redmine.pfsense.org/issues/16570
            https://redmine.pfsense.org/issues/16569

            To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
            Only install packages for your version of pfSense.
            Upvote 👍 helpful posts!

            H 1 Reply Last reply
            Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator @hoopy
              last edited by johnpoz

              @hoopy so what does this accomplish exactly? If you don't want them monitoring? Doesn't it just upload your monitoring when it does have access?

              I get blocking, but not understanding hey block this but allow it every X days or weeks or whatever.

              If there was some update - I would think I would want that when it comes out, not 2 months later, etc.

              My solar uses a cell connection.. But I want the monitoring - so I can see what my system produced, or didn't produce, etc. Not quite understanding the want to block such info. I could see hey I don't want my tv uploading what I watch sort of thing.

              My heating and cooling talks to the net as well - but this allows me to change it while remote, etc. If we are going to be gone for a few days - I either adjust the temp or turn off even. Then when headed back home - make turn the place be at the temp I want when return, etc.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 26.07 | Lab VMs 2.9.0, 26.07

              H 1 Reply Last reply
              Reply Quote 0
              • H
                hoopy @SteveITS
                last edited by

                @SteveITS cool, thanks! (I don't have a login, so I can't say much more :-)

                SteveITSS 1 Reply Last reply
                Reply Quote 0
                • H
                  hoopy @johnpoz
                  last edited by

                  @johnpoz of course you are right, there is no "100% protection", even with pfSense 😉

                  Obviously, if the manufacturer didn't require their monitoring as a pre-condition of their extended guarantee (7 years instead of 2), it would be blocked. Simple.
                  But they do, so this is my compromise, they get an hour every couple of months.

                  Can they still brick my system? sure. I'm under no illusion of that.

                  But, by not being permanently connected, any glitches or hacks etc. that might effect their server cannot directly effect my system (for approx. 1439 of every 1440 hours). I might even hear about "the bad news" before my system is allowed to re-connect and wait for things to be fixed etc. before allowing it online again.

                  Case in point: just last weekend someone hacked the Danfoss servers and remotely set all connected refrigeration units on permanent "defrost", i.e. +50'C instead of -18'C. (see "2026 French supermarket refrigerator hack" in wikipedia)

                  As for remotely seeing what my systems are doing, they are still connected to my LAN and, via wireguard, I can also see what they are doing, reconfigure them etc. from anywhere in the world.

                  Its all about personal preferences and choices.

                  ... and had I known about the "monitoring is a pre-condition of the extended guarantee" thing up front, I would have looked elsewhere. Mind you, I have since found that many manufacturers are using this dark pattern now, so I may have been stuck with it anyway.
                  I can only hope that the EU will make this sort of thing illegal at some point in the near future.

                  Anyway, enough politics.
                  I have a solution and I'm happy again 😄

                  1 Reply Last reply
                  Reply Quote 0
                  • SteveITSS
                    SteveITS Galactic Empire @hoopy
                    last edited by

                    @hoopy said in Long-term scheduling of firewall rules?:

                    @SteveITS cool, thanks! (I don't have a login, so I can't say much more :-)

                    Oh yeah, they have it not public due to the crawlers.

                    I reported "if I choose a day in any month the config adds this, without a year" and the answer was:

                    cf3ebb47-1e9c-4c1d-83b6-b5c3fe9c0499-image.png

                    The other was then a request to update the documentation:
                    "from
                    "A schedule can apply to specific days, such as September 2, 2016, or to days of the week, such as Monday-Wednesday..."

                    to something like:
                    "A schedule can apply to specific dates, the same date every year, or to days of the week, such as Monday-Wednesday..." and then add a note to clarify that all schedule entries are recurring every year."

                    Or they can/should remove the year from the calendar display I suppose.

                    To upgrade, select your branch in System/Update/Update Settings. When upgrading, allow 10-15 minutes to reboot, or more depending on packages, CPU, and/or disk speed.
                    Only install packages for your version of pfSense.
                    Upvote 👍 helpful posts!

                    H 1 Reply Last reply
                    Reply Quote 0
                    • H
                      hoopy @SteveITS
                      last edited by

                      @SteveITS looks good to me 😄

                      It also implies that I won't have a lot to check next year 😉

                      Thanks

                      1 Reply Last reply
                      Reply Quote 0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      • First post
                        Last post
                      Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
                      Privacy Policy · Cookie Policy