opn_toggle_firewall_rule
Toggle a firewall rule's enabled/disabled state for testing or re-enabling. On OPNsense <26.7, changes auto-revert in 60s unless confirmed; on newer versions, apply immediately.
Instructions
Toggle a firewall filter rule's enabled/disabled state with savepoint protection where supported.
Use this when you need to temporarily disable a rule for testing or re-enable a previously disabled rule. The toggle flips the current state.
Savepoint protection applies on OPNsense < 26.7 only: there changes auto-revert in 60 seconds unless confirmed with opn_confirm_changes. OPNsense 26.7 removed the savepoint API upstream, so on 26.7+ changes apply immediately and are NOT rolled back automatically. Check opn_mcp_info first: if 'savepoint_support' is false, take a config backup with opn_download_config before changing rules that could lock you out. Use opn_list_firewall_rules first to find the UUID of the rule. Returns: dict with 'revision' (str) for confirming and 'uuid' (str).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||