Closed vegetableZucchini closed 6 years ago
What version of puppet and windows did this error occur on?
Looking at the config I'd suspect 'IPHTTPS' is not a valid input value for the remote/local port attributes. You might be wanting to try 'IPHTTPSIn' and 'IPHTTPSOut' instead.
It appears this is a symptom of how HNetCfg.FwPolicy2 displays rule attribute values in the powershell script:
$SystemRules = (New-Object -ComObject HNetCfg.FwPolicy2).Rules
$Rule = $SystemRules | where {$_.name -eq "Active Directory Domain Controller (RPC-EPMAP)
$Rule.LocalPorts
> RPC-EPMap
"}
versus
Get-NetFirewallRule -DisplayName "Active Directory Domain Controller (RPC-EPMAP)" | Get-NetFirewallPortFilter
> LocalPort : RPCEPMap
Puppet version is 2017.2.3 And the node is 2008R2
IPHTTPS appears to be correct according to https://technet.microsoft.com/en-us/library/dd759069(v=ws.11).aspx
But I'll try your recommendation. Thank you
JSON rules:
Error output by Puppet: