Turn on Windows Defender Firewall with Advanced Security and Configure Default Behavior
- Windows 10
- Windows 11
- Windows Server 2016 and above
To enable Windows Defender Firewall with Advanced Security and configure its default behavior, use the Windows Defender Firewall with Advanced Security node in the Group Policy Management console.
To complete these procedures, you must be a member of the Domain Administrators group, or otherwise be delegated permissions to modify the GPOs.
To enable Windows Defender Firewall and configure the default behavior
Open the Group Policy Management Console to Windows Defender Firewall with Advanced Security.
In the details pane, in the Overview section, click Windows Defender Firewall Properties.
For each network location type (Domain, Private, Public), perform the following steps.
Note: The steps shown here indicate the recommended values for a typical deployment. Use the settings that are appropriate for your firewall design.
Click the tab that corresponds to the network location type.
Change Firewall state to On (recommended).
Change Inbound connections to Block (default).
Change Outbound connections to Allow (default).