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:
parent
0763b32139
commit
e185201840
@ -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
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user