create_firewall_rule
Define new firewall rules on OPNSense by specifying action, interface, direction, protocol, source, and destination. Configure traffic control for enhanced network security and management.
Instructions
Create a new firewall rule
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Rule action (pass/block/reject) | |
| description | No | Rule description | |
| destination | Yes | Destination address/network or "any" | |
| destinationPort | No | Destination port (for TCP/UDP) | |
| direction | Yes | Traffic direction | |
| enabled | No | Enable rule | |
| interface | Yes | Interface name | |
| protocol | Yes | Protocol (any/tcp/udp/icmp) | |
| source | Yes | Source address/network or "any" | |
| sourcePort | No | Source port (for TCP/UDP) |