create_firewall_preset
Generate predefined firewall rules for OPNSense, such as allowing web, SSH, or blocking all traffic, by specifying interface and optional source, destination, or custom description.
Instructions
Create a firewall rule from a preset
Input Schema
Name | Required | Description | Default |
---|---|---|---|
description | No | Description override (optional) | |
destination | No | Destination override (optional) | |
interface | Yes | Interface name | |
preset | Yes | Preset name | |
source | No | Source override (optional) |
Input Schema (JSON Schema)
{
"properties": {
"description": {
"description": "Description override (optional)",
"type": "string"
},
"destination": {
"description": "Destination override (optional)",
"type": "string"
},
"interface": {
"description": "Interface name",
"type": "string"
},
"preset": {
"description": "Preset name",
"enum": [
"allow-web",
"allow-ssh",
"allow-minecraft",
"block-all"
],
"type": "string"
},
"source": {
"description": "Source override (optional)",
"type": "string"
}
},
"required": [
"preset",
"interface"
],
"type": "object"
}