create_vm_firewall_rule
Add firewall rules to Proxmox VMs by specifying node, VM ID, and rule pattern. Control inbound or outbound traffic with actions like ACCEPT or REJECT.
Instructions
Create a firewall rule for a VM
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_vm_firewall_rule"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pos | No | Position for the rule (optional) | |
| node | Yes | Node where VM is located | |
| rule | Yes | Firewall rule (e.g., 'in,REJECT,22/tcp' or 'out,ACCEPT,any,any') | |
| vmid | Yes | VM ID |