firewall action
The firewall action
object type represents the kind of action that a firewall rule
is set to perform, like blocking or allowing network traffic. On Windows, this type is a wrapper around the NET_FW_ACTION enumerated type.
The "firewall action" type can have the following values:
- 0: Block traffic.
- 1: Allow traffic.
- 2: Maximum traffic.
On Windows, all three values are valid. On macOS only the first two values are valid.
Version | Platforms |
---|---|
8.0.584.0 | Windows |
11.0.4.0 | Mac |
Creation
action of <firewall rule> : firewall action
allow firewall action : firewall action
block firewall action : firewall action
firewall action <integer> : firewall action
Operators
<firewall action> = <firewall action> : boolean