Hello experts.
Since the first time I tried to use Time Constraints on Firewall Rules, I noticed I had issues with devices accessing the Internet. After some lengthy trial and error, I found the problem seems to be because of the iptables rule created by ipFire after translating from LocalZone to UTC.
Following is a sample with a constraint from 6:00pm to 7:00pm on a Tuesday.
I configure a rule with a constraint from 18:00 to 19:00 on a Tuesday (my local timezone which is UTC -5), the resulting TIME part of the iptables rule is:
TIME from 23:00:00 to 02:00:00 on Tue UTC
What seems to happen then is that the rule is applied at 18:00 Tuesday (23:00 UTC), but the rule is no longer in effect at 19:00 (00:00 UTC) because at that point it’s no longer Tuesday, but rather 00:00 UTC on Wednesday.
If I’m correct on this, I suppose it’s more of an ipTables issue than ipFire.
If so: Do I have to create multiple rules to accommodate for midnight boundaries?
Thank you in advance!