pve_firewall_rule_add
Add a firewall rule to Proxmox VE with a dry-run plan that shows scope, direction, action, and key fields. Confirm to execute, but be cautious with DROP/REJECT to avoid connectivity lockout.
Instructions
MUTATION: add a new firewall rule. Dry-run by default — the PLAN shows scope, direction, action, and key address/port fields. Re-call with confirm=True to execute. Synchronous.
WARNING: a misplaced DROP/REJECT can cause a connectivity lockout.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dest | No | ||
| kind | No | ||
| node | No | ||
| vmid | No | ||
| dport | No | ||
| proto | No | ||
| scope | No | cluster | |
| sport | No | ||
| action | Yes | ||
| enable | No | ||
| source | No | ||
| comment | No | ||
| confirm | No | ||
| direction | No | in | |
| proximo_target | No | Which configured Proxmox target to run this call against — a target name from your multi-target config (a specific PVE/PBS/PMG/PDM box). Omit to use the single/default target from the environment; the selection applies only to this call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |