dsccommunity / dsccommunity/NetworkingDsc
Remove group of FW rules
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 235
- Forks
- 93
- PR merge metrics
- No merged PRs in 30d
Description
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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the dsc_firewall block shown in issue #503 and inspect how grouped rules and wildcard dsc_name values are handled. Done means a group of firewall rules can be removed with the documented resource syntax and the behavior is covered by an appropriate test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- networking, security
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100