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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"preset": "<preset>",
"interface": "<interface>"
},
"name": "create_firewall_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) |