Allowing particular address-range packets, using firewall...

I want to write a small script of firewall input rule to accept all the packets from the address range 192.168.2.1 to 192.168.2.50
I have v4.17 routeros and in example, this is done by the following way(for range 1.1.1.1 to 1.1.1.100)…

:for e from 1 to 100 do={
/ip firewall rule input add
src-address=(1.1.1. . $e)
src-netmask=255.255.255.255
}

In v4.17, in the menu level “ip firewall” , there is no “rule” menu level so I dont know how to do this… :frowning:
need help…

There are no “/ip firewall rule” sub-menu, but there are “/ip firewall filter”, “/ip firewall nat” and “/ip firewall mangle”. You can simply use this syntax 192.168.2.1-192.168.2.50 whenever you need to specify a range of IP addresses.