fw_rules
Retrieve OPNsense firewall rules from the Automation API with optional filters by interface, action, status, or protocol.
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.) |