0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-08-22 11:28:33 +00:00

feat(firewall): adds forward type to firewall rules (#2052)

Signed-off-by: Marshall Ford <inbox@marshallford.me>
This commit is contained in:
Marshall Ford 2025-07-21 12:45:26 -05:00 committed by GitHub
parent 0763b32139
commit e185201840
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -46,7 +46,7 @@ resource "proxmox_virtual_environment_cluster_firewall_security_group" "webserve
- `comment` - (Optional) Security group comment.
- `rule` - (Optional) Firewall rule block (multiple blocks supported).
- `action` - (Required) Rule action (`ACCEPT`, `DROP`, `REJECT`).
- `type` - (Required) Rule type (`in`, `out`).
- `type` - (Required) Rule type (`in`, `out`, `forward`).
- `comment` - (Optional) Rule comment.
- `dest` - (Optional) Restrict packet destination address. This can refer to
a single IP address, an IP set ('+ipsetname') or an IP alias

View File

@ -62,7 +62,7 @@ resource "proxmox_virtual_environment_firewall_rules" "inbound" {
The provider supports two types of the `rule` blocks:
- A rule definition block, which includes the following arguments:
- `action` - (Required) Rule action (`ACCEPT`, `DROP`, `REJECT`).
- `type` - (Required) Rule type (`in`, `out`).
- `type` - (Required) Rule type (`in`, `out`, `forward`).
- `comment` - (Optional) Rule comment.
- `dest` - (Optional) Restrict packet destination address. This can
refer to a single IP address, an IP set ('+ipsetname') or an IP

View File

@ -78,9 +78,9 @@ func Rules() *schema.Resource {
},
mkRuleType: {
Type: schema.TypeString,
Description: "Rules type ('in', 'out')",
Description: "Rules type ('in', 'out', 'forward')",
Optional: true,
ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"in", "out"}, true)),
ValidateDiagFunc: validation.ToDiagFunc(validation.StringInSlice([]string{"in", "out", "forward"}, true)),
},
mkRuleComment: {
Type: schema.TypeString,