MQL ResourcesOperating SystemWindows-specific resource to get operating system detailsWindows Firewall resource
Windows Firewall rule entry
Windows Firewall rule configuration
Operating System
Windows Firewall rule entry
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/wfascimprov/msft-netfirewallrule
Use MQL in cnspec shell or policy:
windows.firewall.ruleMin version: 5.15.0
Relationships
2 resources · 2 relationships·Click to select, expand fields to see properties.
Fields (16)
| Field | Type | Description |
|---|---|---|
actionrequired | int | Specifies the action to take on traffic that matches this rule |
descriptionrequired | string | Brief description of the rule |
directionrequired | int | Specifies which direction of traffic to match with this rule |
displayGrouprequired | string | The group that this rule belongs to |
displayNamerequired | string | Localized name of this rule |
edgeTraversalPolicyrequired | int | Specifies how this firewall rule will handle edge traversal cases |
enabledrequired | int | Whether this rule is administratively enabled or disabled |
enforcementStatusrequired | string | Whether this object is retrieved from the ActiveStore |
instanceIDrequired | string | A string that uniquely identifies this instance within the policy store |
localOnlyMappingrequired | int | Whether to group UDP packets into conversations based only on the local address and port |
looseSourceMappingrequired | int | Whether to group UDP packets into conversations based on the local address, local port, and remote port |
namerequired | string | Name of the rule |
policyStoreSourcerequired | string | Contains the path to the policy store where this rule originally came from |
policyStoreSourceTyperequired | int | Describes the type of policy store where this rule originally came from |
primaryStatusrequired | int | PrimaryStatus provides a high level status value |
statusrequired | string | Detailed status of the rule |
Field Details
directionint
Values: inbound (1), outbound (2)
edgeTraversalPolicyint
Values: block (0), allow (1), defer to user (2), defer to app (3)
enabledint
Values: enabled (1), disabled (2)
primaryStatusint
Values: unknown (0), OK (1), degraded (2), error (3)