add_firewall_rule
Create a staged firewall rule to pass, block, or reject traffic, then apply changes to activate it.
Instructions
Add a firewall rule. Type is 'pass', 'block', or 'reject'.
The rule is staged (not active) until apply_changes('firewall') is called or apply=true is passed here.
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": {
"interface": "<interface>",
"type": "<type>"
},
"name": "add_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| apply | No | ||
| descr | No | ||
| source | No | any | |
| dstport | No | ||
| protocol | No | ||
| interface | Yes | ||
| ipprotocol | No | inet | |
| destination | No | any |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||