How can I set a timer to trigger a firewall rule enabling and automatically disabling after X minutes ?
Not a scheduled rule (made by schedule or rule "time" option) , a "one shot" rule to be triggered when needed.
I think now you just inform the rb to do some thing and take a rest for some second and then do other things so it will not spend cpu and ramThanks,
What about to simply enable the rule and disable it after x minutes ?
any issue in leaving script hung for a long time ?Code: Select all
/ip firewall filter enable <rule> delay 3600; /ip firewall filter disable <rule>