update_filter_rule
Modify an existing MikroTik firewall filter rule by its ID, adjusting parameters like action, addresses, ports, or interfaces to meet changing network requirements.
Instructions
Updates an existing firewall filter rule on the MikroTik device.
Notes: rule_id: use the ID from list output e.g. "*1" or "0" connection_state: comma-separated e.g. "established,related" limit: RouterOS rate string e.g. "10,5:packet" tcp_flags: RouterOS flag expression e.g. "syn,!ack" Pass "" to clear an optional field (e.g. src_address="").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | ||
| chain | No | ||
| limit | No | ||
| action | No | ||
| device | No | ||
| comment | No | ||
| rule_id | Yes | ||
| disabled | No | ||
| dst_port | No | ||
| protocol | No | ||
| src_port | No | ||
| tcp_flags | No | ||
| log_prefix | No | ||
| dst_address | No | ||
| src_address | No | ||
| in_interface | No | ||
| out_interface | No | ||
| connection_state | No | ||
| dst_address_list | No | ||
| src_address_list | No | ||
| connection_nat_state | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |