You could use a script… or an easier way would be to use 2 duplicate firewall rules that are only activated during the said times. Something like this:
/ip firewall filter
add action=accept chain=forward time=11h-12h30m,sun,mon,tue,wed,thu,fri,sat
add action=accept chain=forward time=13h-22h30m,sun,mon,tue,wed,thu,fri,sa
You could create a schedule that runs a script like this every 30 minutes. It checks the time and enables / disables the firewall rule with comment “My Comment” if the times match.
:local time [:pick [/system clock get time] 0 5]
Please tell me how to make one with the rule to work 23:00:00 - 7:00:00?
Or always have to make 2 rules, one with the 23:00:00 - 23:59:59, and the second with 00:00:00 - 7:00:00?