Enable Mikrotik firewall rule using comment field

The below can be used in a schedule or script to control rules, just change “enable” to “disable” to disable the rule and “BlockKids” is the comment so change to suit your needs.

/ip firewall filter enable [find comment=”BlockKids”];

Was this post helpful?

Total Page Visits: 6034 - Today Page Visits: 2