create_container_firewall_rule
Create a firewall rule for a container by specifying the node, VM ID, and rule string, with an optional position, to manage traffic filtering in Proxmox.
Instructions
Create a firewall rule for a container
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": {
"node": "<node>",
"vmid": "<vmid>",
"rule": "<rule>"
},
"name": "create_container_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pos | No | Position for the rule (optional) | |
| node | Yes | Node where container is located | |
| rule | Yes | Firewall rule (e.g., 'in,REJECT,22/tcp' or 'out,ACCEPT,any,any') | |
| vmid | Yes | Container ID |