Hello, I have mikrotik in hotspot mode and i have problem with firewall rules. Hotspot firewall rules are dynamically added but i have a static rules as well. Everything works OK until reboot After reboot first rules are dynamic a last ones are my static which is bad. So i need to move static rules from bottom to top always after reboot. The command is (for example): ip firewall filter move 21 0. but what abou if on line 21 will not be my static rule but other one? I would like to have command something like this>
if firewall rule contains dstnat, source addres=192.168.91.160/27 protocol=6 (tcp) destination port=53 than move this rule to position 1... Could you help me with this script? litlle bit tough one for me. thank you in advance. Radek