firewall rule
The <firewall rule> inspectors are implemented as a wrapper of the firewall APIs of Windows and macOS. On unsupported systems, they return no results. For more information on the Windows implementation, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Creation
Retrieves the collection of rules for the specified firewall. For more information on Windows, see the Microsoft documentation for the INetFwPolicy2 interface.
Example running the QnA on a Windows computer showing names of firewall rules based on a specific action. Only the first 3 answers are shown.
- Q: names of rules whose (action of it = firewall action 1) of firewall
- A: Google Chrome (mDNS-In)
- A: BES Client (ICMPv6)
- A:
Example running the QnA on a Mac computer showing rules of firwall. Only the first 3 answers are shown.
- Q: (application name of it, service name of it, action of it) of rules of firewall
- A: com.apple.iBooksX, , Allow
- A: com.apple.WebKit.Networking, , Allow
- A: , Screen Sharing, Allow
Version | Platforms |
---|---|
8.0.584.0 | Windows |
11.0.4.0 | Mac |
Properties
Retrieves the type of action that the specified firewall rule is set to perform (e.g. blocking network traffic). On Windows, this property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface and the NET_FW_ACTION enumeration.
Example running the QnA on a Windows computer showing the target application of each firewall rule that allows network traffic. Only the first 3 answers are shown.
- Q: names of rules whose (action of it = firewall action 1) of firewall
- A: Google Chrome (mDNS-In)
- A: BES Client (ICMPv6)
- A: BES Client (ICMPv4)
Example running the QnA on a Mac computer showing the target application of each firewall rule that allows network traffic. Only the first 3 answers are shown.
- Q: (application name of it) of rules whose (action of it = firewall action 1) of firewall
- A: com.apple.iBooksX
- A:
- A:
Version | Platforms |
---|---|
8.0.584.0 | Windows |
11.0.4.0 | Mac |
Retrieves the application name property for the specified firewall rule. On Windows, this property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
This property returns an empty string if the firewall rule does not specify an application name.
Example running the QnA on a Windows computer showing application names of a rule. Only the first 3 answers are shown.
- Q: (application name of it) of rules whose (action of it = firewall action 1) of firewall
- A: C:\Program Files (x86)\BigFix Enterprise\BES Client\BESClient.exe
- A: C:\Program Files (x86)\BigFix Enterprise\BES Client\BESClient.exe
- A:
Example running the QnA on a Mac computer showing application names of a rule. Only the first 3 answers are shown.
- Q: application names of rules of firewall
- A: com.apple.screensharing.daemon
- A: com.apple.iBooksX
- A:
Version | Platforms |
---|---|
8.0.584.0 | Windows |
11.0.4.0 | Mac |
Currently active is true if and only if the specified firewall rule is enabled (the Enabled property is true) AND the currently active profile type (as defined by the CurrentProfileTypes property of INetFwPolicy2) is one of the profiles for which the rule applies (as defined by the Profiles property). For more information see the MSDN Library articles for INetFwRule, including the CurrentProfileTypes and Profiles properties.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the Description property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the EdgeTraversal property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the IcmpTypesAndCodes property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the inbound direction property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the Interface types property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the Interfaces property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the LocalPorts property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the Name property for the specified firewall rule. On Windows, this property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
This property returns an empty string if the firewall rule does not have a name.
Example running the QnA on a Window computer showing names of a rules. Only the first 3 answers are shown.
- Q: names of rules of firewall
- A: BES Client (ICMPv6)
- A: BES Client (ICMPv4)
- A:
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the outbound direction property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the RemoteAddresses property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the RemotePorts property for the specified firewall rule. This property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
Retrieves the ServiceName property for the specified firewall rule. On Windows, this property is implemented as a wrapper around the Windows Firewall API. For more information, see the Microsoft documentation for the INetFwRule interface.
This property returns an empty string if the firewall rule does not specify a service name.
Example running the QnA on a Window computer showing service names associated with the firewall rules. Only the first 4 answers are shown.
- Q: service names of rules of firewall
- A:
- A:
- A: Ssdpsrv
- A: Ssdpsrv
Example running the QnA on a Mac computer showing service names associated with the firewall rules. Only the first 4 answers are shown.
- Q: service names of rules of firewall
- A:
- A:
- A: Screen Sharing
- A: Remote Login - SSH
Version | Platforms |
---|---|
8.0.584.0 | Windows |
11.0.4.0 | Mac |