JSI Tip 9378. When you configure an exception for the Windows Firewall by using the registry, the GUI does NOT show the exception?
May 22, 2005
When you configure an exception for the Windows XP SP2 or Windows Server 2003 SP1 Windows Firewall by using the registry, the Windows Firewall GUI may NOT show the exception.
This behavior will occur if you fail to specify an exception name in the registry.
Example:
If I open TCP port 2000 by running:
REG ADD HKLMSYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyDomainProfileGloballyOpenPortsList /V 2000:TCP /T REG_SZ /F /D "2000:TCP:*:Enabled"
the exception will NOT show up on the Windows Firewall Exceptions tab.
If I open TCP port 2000 by running:
REG ADD HKLMSYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyDomainProfileGloballyOpenPortsList /V 2000:TCP /T REG_SZ /F /D "2000:TCP:*:Enabled:ExceptionName"
the exception WILL show up on the Windows Firewall Exceptions tab.
To workaround this behavior, you can use netsh firewall show state verbose = enable and look below Ports currently open on all network interfaces.
About the Author
You May Also Like