fw_rules
Retrieve firewall rules from OPNsense Automation API. Filter by interface, action, enabled status, or protocol to inspect specific rule sets.
Instructions
Get firewall rules exposed by the OPNsense Firewall Automation API (Firewall → Automation). Rules that exist only under the classic Firewall → Rules UI may not appear here; see OPNsense API docs. Returns the current rule set for context and reasoning.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| interface | No | Filter by interface name (supports partial matching and groups) | |
| action | No | Filter by action (pass, block, reject, etc.) | |
| enabled | No | Filter by enabled status | |
| protocol | No | Filter by protocol (tcp, udp, icmp, etc.) |