opnsense_fw_update_rule
Update an OPNsense firewall rule by UUID to change its action, direction, interface, or other parameters. Apply changes afterward to activate.
Instructions
Update an existing firewall filter rule by UUID. Run opnsense_fw_apply afterwards to activate.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"uuid": "<uuid>",
"action": "<action>",
"direction": "<direction>"
},
"name": "opnsense_fw_update_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | UUID of the rule to update | |
| action | Yes | Rule action | |
| direction | Yes | Traffic direction | |
| interface | No | Interface name | |
| protocol | No | Protocol | |
| source_net | No | Source network | |
| destination_net | No | Destination network | |
| destination_port | No | Destination port or range | |
| description | No | Rule description |