Anyone can help me how to disable all list ip address except some ips, for example, i have 100 ip address listed, i need to disable all except only 3 ips enable state.
if except only 1 ip it’s solved for me, below command line for disable all ip address except 1 ip :
/ip address disable [/ip address find where address!="10.11.12.2/30"]
Hi CZFan, thanks for reply,
If except 1 ip, it’s solved for me, and i forgot to add " on my capture, because i apply this for script on CLI. Can you help us to except more than 1 ip? Example i need to disable all except 3 listed ips.
creat an address-list for ips that you dont wanna block
so in the rule in src/dst-address-list choose that and press the checkbox in left of address-list that means NOT
with this config you block all ips except the ips you want
Excelent !!..it’s work for me, as info by CZFan, it’s only correction on “=!” to “!=”
Thank you verry much, it’s done for me to make Mikrotik HA with dynamic routing active.