Troubleshooting Windows Firewall Using Auditing
You can use auditing to monitor Windows Firewall and IPsec activity and to troubleshoot issues that may arise. Auditing events for Windows Firewall and IPsec activity are written to the Security Event Log and have Event IDs in the range 4600 to 5500.
Auditing for Windows Firewall and IPsec activity can be enabled on targeted computers in two ways:
- Using Group Policy
- Using the Auditpol.exe command
To configure auditing for Windows Firewall and IPsec activity using Group Policy, use the audit policy subcategories found under the following location:
Computer Configuration\Policies\Windows Settings\Security Settings\Advanced Audit Policy Configuration\Audit Policies
The audit policy subcategories available under this policy node. The audit policy subcategories relevant for Advanced Audit Policy Configuration are as follows:
- Logon/Logoff
- IPsec Main Mode
- IPsec Quick Mode
- IPsec Extended Mode
- Object Access
- Filtering Platform packet drop
- Filtering Platform connection
- Policy Change
- MPSSVC rule-level policy change
- Filtering Platform policy change
- System
- IPsec Driver
- Other system events
To list all audit policy subcategories from the command line, type auditpol /list /subcategory:* at an administrative-level command prompt. To use Auditpol.exe to enable auditing for Windows Firewall activity, type the following command.
auditpol.exe /set /SubCategory:"MPSSVC rule-level Policy Change","Filtering Platform policy change","Other System Events","Filtering Platform Packet Drop","Filtering Platform Connection" /success:enable /failure:enable
To use Auditpol.exe to enable auditing for IPsec activity, type the following command.
auditpol.exe /set /SubCategory:"MPSSVC rule-level Policy Change","Filtering Platform policy change","IPsec Main Mode","IPsec Quick Mode","IPsec Extended Mode","IPsec Driver","Other System Events","Filtering Platform Packet Drop","Filtering Platform Connection" /success:enable /failure:enable
Important Enabling auditing for Windows Firewall and IPsec activity can generate a large number of events in the Security Event Log, so be sure to enable it only when actively collecting troubleshooting information.
In this tutorial:
- Configuring Windows Firewall and IPsec
- Understanding Windows Firewall with Advanced Security
- Improvements to Windows Firewall Introduced Previously in Windows Vista
- Additional Improvements to Windows Firewall in Windows 7
- Understanding the Windows Filtering Platform
- Windows Firewall and the Startup Process
- Understanding Windows Service Hardening
- Understanding Service SIDs
- Windows Firewall and WSH
- Windows Firewall and Service Triggers
- Understanding Multiple Active Firewall Profiles
- Understanding Rules
- Understanding Firewall Rules
- Inbound vs . Outbound Rules
- Allow vs . Block Rules
- Allow If Secure Rules
- Authenticated Bypass Rules
- Filtering Conditions FOR Firewall RULES
- Understanding Connection Security Rules
- Types of Connection Security Rules
- Supported IPsec Settings for Connection Security Rules
- Default IPsec Settings for Connection Security Rules
- Windows Firewall and Windows PE
- Understanding Default Rules
- Understanding WSH Rules
- Understanding Rules Processing
- Managing Windows Firewall with Advanced Security
- Tools for Managing Windows Firewall with Advanced Security
- Managing Windows Firewall Using Control Panel
- Managing Windows Firewall Using the Windows Firewall with Advanced Security Snap-in
- Managing Windows Firewall Using Group Policy
- Considerations When Managing Windows Firewall Using Group Policy
- Managing Windows Firewall Using the Netsh Command
- Common Management Tasks
- Enabling or Disabling Windows Firewall
- Configuring Firewall Profiles and IPsec Settings by Using Group Policy
- Creating and Configuring Firewall Rules
- Creating and Configuring Connection Security Rules
- Monitoring Windows Firewall
- Troubleshooting Windows Firewall
- Troubleshooting Windows Firewall Using Firewall Logs
- Troubleshooting Windows Firewall Using Event Logs
- Troubleshooting Windows Firewall Using Auditing
- Troubleshooting IPsec Issues Using Netsh Wfp
- Troubleshooting Windows Filtering Platform and IPsec Issues Using Netsh Trace