create_container_firewall_rule
Create a firewall rule for a Proxmox LXC container, specifying action, type, source, destination, protocol, and port to control network traffic.
Instructions
Create a firewall rule for an LXC container.
Args: node: The node name. vmid: The container ID. action: 'ACCEPT', 'DROP', 'REJECT'. type: 'in', 'out', 'group'. enable: 1 = enabled, 0 = disabled. source: Source CIDR or alias. dest: Destination CIDR or alias. proto: Protocol. dport: Destination port(s). macro: Predefined macro. comment: Description.
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>",
"action": "<action>",
"type": "<type>"
},
"name": "create_container_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | No | ||
| node | Yes | ||
| type | Yes | ||
| vmid | Yes | ||
| dport | No | ||
| macro | No | ||
| proto | No | ||
| action | Yes | ||
| enable | No | ||
| source | No | ||
| comment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |