Viewing and managing rules
You can view and manage firewall rules using either the
Windows Firewall with Advanced Security snap-in or Windows
PowerShell. As Figure 11 shows, you can
use the Windows Firewall with Advanced Security snap-in to filter
inbound or outbound rules in several ways:
-
Filter By Profile Use this
option to display all rules associated with a specific firewall
profile.
-
Filter By State Use this
option to display either all enabled rules or all disabled
rules.
-
Filter By Group Use this
option to display all the rules associated with a specific rule
group.
After you display the rules you want to manage, you can
right-click on them and select any of the following options:
-
Enable Use this option to
enable a rule that is currently disabled.
-
Disable Use this option to
disable a rule that is currently enabled.
-
Delete Use this option to
delete a rule that is no longer needed.
-
Properties Use this option
to open the properties of the rule and configure any editable
criteria for the rule.
You can also use the Monitoring node in the console tree of
the Windows Firewall with Advanced Security snap-in to view the
state and configuration of each firewall profile and to view active
firewall rules associated with a firewall. Figure 12 shows some
details about the Domain Profile when the Monitoring node is
selected on a computer.
As shown previously, you can use the Get-NetFirewallProfile
and Get-NetFirewallRule cmdlets to display information about
firewall profiles and rules on computers.