Perhaps this sub-script could be used (or parts of its logic) for the aspect of conversion of "Mikrotik date" (eg dec/31/2019) to something usable.Īlso interesting, script/logic to get the difference between 2 dates.Īnother one on string > time conversion and the issues it has. Below are the steps to get it set up (example: (1) Firewall -> Filter Rules - add two entries that matches address list in both 'Src. Hopefully some of the real scripting guru's here can jumpstart you. It is possible on the Mikrotik with a little bit of scripting. with some regex, only retain date part,convert it to a real date somehow) it and compare it to the actual daytime value, do the math and then decide (if > 7 days) to remove it. The only "field" you have is the "Creation Time" when you added this (static) entry. Hmm, that is going to be not so easy I think.Ĭan't help you with the script, but out of curiosity I've been searching through the forums about this. I think plan to use dynamic but they dont persist at reboot.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |