Long-term scheduling of firewall rules?
-
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!
-
@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.
-
@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 ;-)
-
@hoopy I suggested a doc update, see the Redmines
https://redmine.pfsense.org/issues/16570
https://redmine.pfsense.org/issues/16569 -
@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.
-
@SteveITS cool, thanks! (I don't have a login, so I can't say much more :-)
-
@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
-
@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:

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.
-
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 LoginPrivacy Policy · Cookie Policy