I would suggest asking in the thread you posted - especially since it appears the author may be in the thread.
I would also however suggest a much different approach.
Allowing Access TO your router should Only happen if you know WHO IS COMING
Allowing Access THROUGH Your Router on the other hand is a much better approach.
Rick Frey Consulting has a great script - and Butch Evans has an even better script that would allow for you to manage the firewall in a much better way.
Also - be very careful - Every Firewall Entry MUST BE READ until there is a match and/or if no match than it releases the packet.
If you were to place hundreds of entries this can SLOW DOWN your router but also TRAFFIC...
We often receive calls into the Mikrotik TAC @ http://Connectivity.Engineer
with such complaints.
In fact we had one during the recent debate on Television (you can read about that here: http://connectivity.engineer/networking ... hardening/
The best approach imho is to lessen your attack vector by FIREWALLING EVERYTHING that you do not need to allow and allowing only whom you do.
Access TO the router is rarely needed - Access Through the router often is.
Questions - please feel free to ask - and remember that other thread might be a good place as well (keep in mind the script is looping in version 6.x of RouterOS however)
Glenn Kelley | MCTNA, MTCWE, MTCTCE, RHCE, RHCSS
USA Based 24x7x365 Mikrotik, Juniper, Ubiquiti TAC & WISP / ISP Blind Label Support Call Center