create_firewall_rule
Configure firewall rules on OPNSense by specifying action, interface, direction, protocol, and source/destination addresses to manage network traffic effectively.
Instructions
Create a new firewall rule
Input 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) |