Skip to content
Back home
The home of William Rendell
  • Home
  • Family
    • Holidays
    • Pets
    • Vehicles
  • Health and Fitness
  • Technical
    • Mikrotik
    • Computing
    • Renewable Energy
  • Privacy Policy
    • Cookie policy (UK)
  • Music
    • Harmonica
      • Easy
      • Intermediate
  • Contact
  • Search
Back home
  • Search
  • Home
  • Family
    • Holidays
    • Pets
    • Vehicles
  • Health and Fitness
  • Technical
    • Mikrotik
    • Computing
    • Renewable Energy
  • Privacy Policy
    • Cookie policy (UK)
  • Music
    • Harmonica
      • Easy
      • Intermediate
  • Contact
Home » Technical » Mikrotik » Enable Mikrotik firewall rule using comment field
Mikrotik Technical

Enable Mikrotik firewall rule using comment field

by William Rendell|Published November 4, 2019

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”];

  • Firewall
  • Mikrotik
  • Router
  • Routerboard
  • Schedule

You may also like

Batch file needs UAC
Published April 30, 2012

Batch file needs UAC

I have a few batch files that run on a schedule, I have found though that they are not running properly? If […]

EFA Project Quarantined mail
Published July 20, 2023

EFA Project Quarantined mail

This adjusts the number of days to keep quarantined email etc/MailScanner/defaults /var/www/mailscanner/conf.php days to keep need to be edited in both the […]

Add swap file into linux
Published February 11, 2026

Add swap file into linux

fallocate -l 4G /swapfilechmod 600 /swapfilemkswap /swapfileswapon /swapfile If RAM = 4GBUse swap = 4GB–8GB If RAM = 8GBSwap = 2GB–4GB is […]

Delete Files Older Than Date Using Batch Files
Published November 24, 2009

Delete Files Older Than Date Using Batch Files

This problem has nagged at me for years. Here is a batch command to delete files on a Windows 2003 machine. Forfiles […]

Post navigation

  • Previous post Reprogram New MINI Keys R50/52/53
  • Back to post list
  • Next post Add a Mikrotik user, using CLI or a script

© 2026  – All rights reserved

Powered by WP – Designed with the Customizr Theme