pve_create_vm_firewall_rule
Add firewall rules to Proxmox virtual machines to control network traffic by specifying actions, protocols, ports, and addresses.
Instructions
Create VM firewall rule
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": "pve_create_vm_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | Node name | |
| vmid | Yes | VM ID | |
| action | Yes | Rule action (ACCEPT, DROP, REJECT) | |
| type | Yes | Rule type | |
| enable | No | Enable rule | |
| source | No | Source address | |
| dest | No | Destination address | |
| sport | No | Source port | |
| dport | No | Destination port | |
| proto | No | Protocol | |
| iface | No | Interface | |
| comment | No | Comment | |
| pos | No | Position |