FirewallProfiles configures Windows Firewall profiles (Domain, Private, Public).
Use this resource when you need to configure the overall state of Windows Firewall profiles rather than individual rules. It allows you to enable/disable profiles, set default inbound/outbound actions, configure logging, and control notification settings for each network profile type. For managing individual firewall rules, use FirewallRules instead.
Source |
|
DSC Resource |
|
Documentation |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Mandatory |
hashtable[] |
| Parameter | Attribute | DataType | Description | Allowed Values |
|---|---|---|---|---|
Name |
Key |
String |
The name of the firewall profile to configure. |
|
AllowInboundRules |
String |
Specifies that the firewall blocks inbound traffic. |
|
|
AllowLocalFirewallRules |
String |
Specifies that the local firewall rules should be merged into the effective policy along with Group Policy settings. |
|
|
AllowLocalIPsecRules |
String |
Specifies that the local IPsec rules should be merged into the effective policy along with Group Policy settings. |
|
|
AllowUnicastResponseToMulticast |
String |
Allows unicast responses to multi-cast traffic. |
|
|
AllowUserApps |
String |
Specifies that traffic from local user applications is allowed through the firewall. |
|
|
AllowUserPorts |
String |
Specifies that traffic is allowed through local user ports. |
|
|
DefaultInboundAction |
String |
Specifies how to filter inbound traffic. |
|
|
DefaultOutboundAction |
String |
Specifies how to filter outbound traffic. |
|
|
DisabledInterfaceAliases |
String[] |
Specifies a list of interfaces on which firewall settings are excluded. |
||
Enabled |
String |
Specifies that devolution is activated. |
|
|
EnableStealthModeForIPsec |
String |
Enables stealth mode for IPsec traffic. |
|
|
LogAllowed |
String |
Specifies how to log the allowed packets in the location specified by the LogFileName parameter. |
|
|
LogBlocked |
String |
Specifies how to log the dropped packets in the location specified by the LogFileName parameter. |
|
|
LogFileName |
String |
Specifies the path and filename of the file to which Windows Server writes log entries. |
||
LogIgnored |
String |
Specifies how to log the ignored packets in the location specified by the LogFileName parameter. |
|
|
LogMaxSizeKilobytes |
UInt64 |
Specifies the maximum file size of the log, in kilobytes. |
1 - 32767 |
|
NotifyOnListen |
String |
Allows the notification of listening for inbound connections by a service. |
|
FirewallProfiles:
Profile:
- Name: Private
Enabled: True
DefaultInboundAction: Block
DefaultOutboundAction: Allow
AllowInboundRules: True
AllowLocalFirewallRules: False
- Name: Domain
Enabled: false