NetworkingDsc icon indicating copy to clipboard operation
NetworkingDsc copied to clipboard

Remove group of FW rules

Open DanielTei opened this issue 3 years ago • 1 comments

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

DanielTei avatar Sep 01 '21 08:09 DanielTei

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.

PlagueHO avatar Apr 10 '22 06:04 PlagueHO