opnsense_fw_update_rule
Modify an existing firewall rule by UUID to change its action, direction, protocol, or network settings in OPNsense.
Instructions
Update an existing firewall filter rule by UUID. Run opnsense_fw_apply afterwards to activate.
Input Schema
TableJSON 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 |