paultyng / terraform-provider-unifi

Terraform provider for Unifi :satellite:
https://registry.terraform.io/providers/paultyng/unifi/latest/docs
Mozilla Public License 2.0
522 stars 91 forks source link

unifi_firewall_rule doest have Port Group? #459

Open matty2k opened 6 months ago

matty2k commented 6 months ago

dst_firewall_group_ids is fine, but I would also like to include the port group

for example

resource "unifi_firewall_rule" "xxxx" { name = "xxxx" action = "accept" ruleset = "LAN_IN" enabled = true rule_index = xxxxx

protocol = "all"

src_network_id = xxxx dst_firewall_group_ids = xxxxx Port group? ? logging = false } The dst_port won't work, as it is only for individual ports, not for port groups

atanaskupenov commented 3 months ago

This is still working, although not well documented. Place in the source and destination port groups in the dst_firewall_group_ids and src_firewall_group_ids. e.g. src_network_id = [66cc70ad77b1073f6dc639e6, 66cc70ad77b1073f6dc639e5]