NetworkingDsc
NetworkingDsc copied to clipboard
Remove group of FW rules
Hi everyone, Just recently started using this module, and I was wondering if there's a way to remove multiple firewall rules that belong to one group.
Been using a simple block to try and do this:
dsc_firewall { 'Remove fw rules':
dsc_name => '*',
dsc_group => 'examplegroup',
dsc_ensure => 'Absent',
}
That doesn't error out, but doesn't actually remove the rules. Tried escaping the wildcard with a backslash but same thing. Any thoughts?
Thanks in advance, Daniel
Hi @DanielTei - sorry about the very long delay in getting to this. Currently the firewall
resource does not support making an entire group of rules absent. You'd have to specify each rule individually and make that absent.