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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| node | Yes | ||
| vmid | Yes | ||
| action | Yes | ||
| type | Yes | ||
| enable | No | ||
| source | No | ||
| dest | No | ||
| proto | No | ||
| dport | No | ||
| macro | No | ||
| comment | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |