create_cluster_firewall_rule
Create a cluster-level firewall rule to accept, drop, or reject traffic based on source, destination, protocol, and ports, with optional logging and macros.
Instructions
Create a cluster-level firewall rule.
Args: action: 'ACCEPT', 'DROP', 'REJECT'. type: 'in', 'out', 'group'. enable: 1 = enabled, 0 = disabled. source: Source address/range (CIDR or alias). dest: Destination address/range. proto: Protocol (tcp, udp, icmp, etc.). sport: Source port(s). dport: Destination port(s). iface: Network interface. macro: Use predefined macro (e.g. 'SSH', 'HTTP', 'HTTPS', 'Ping'). comment: Description. log: Log level: 'emerg', 'alert', 'crit', 'err', 'warning', 'notice', 'info', 'debug', 'nolog'. pos: Rule position (-1 = append).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | ||
| type | Yes | ||
| enable | No | ||
| source | No | ||
| dest | No | ||
| proto | No | ||
| sport | No | ||
| dport | No | ||
| iface | No | ||
| macro | No | ||
| comment | No | ||
| log | No | ||
| pos | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |