disable_firewall_rule
Disable an existing MikroTik firewall filter rule by its comment, optionally narrowed by chain. Requires write access and confirmation to apply.
Instructions
Disable an EXISTING firewall filter rule (/ip/firewall/filter set disabled=yes), resolved by its comment - optionally narrowed by
chain if more than one rule shares that comment.
Same "never creates a rule" guarantee and comment-based resolution
as enable_firewall_rule - see its docstring and README's "Firewall
rule toggle (by comment)" section.
WRITE tool, guarded: blocked entirely unless the server is running
with MIKROTIK_ALLOW_WRITE=true. Call with confirm=False (the
default) to get a before/after preview without changing anything;
call again with confirm=True to actually apply it. Errors clearly if
no rule matches comment (narrowed by chain), or if more than one
still does (AmbiguousResourceError).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ||
| comment | Yes | ||
| confirm | No | ||
| device_name | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||