It's important to have Microsoft Defender Firewall on, even if you already have another firewall on. It helps protect you from unauthorized access.

To turn Microsoft Defender Firewall on or off:

  1. Select Start  , then open Settings  . Under Privacy & security  , select Windows Security  > Firewall & network protectionOpen Windows Security settings

  2. Select a network profile: Domain network, Private network, or Public network.

  3. Under Microsoft Defender Firewall, switch the setting to On. If your device is connected to a network, network policy settings might prevent you from completing these steps. For more info, contact your administrator.

  4. To turn it off, switch the setting to Off. Turning off Microsoft Defender Firewall could make your device (and network, if you have one) more vulnerable to unauthorized access. If there's an app you need to use that's being blocked, you can allow it through the firewall, instead of turning the firewall off.

  1. Select the Start  button > Settings  > Update & Security  > Windows Security and then Firewall & network protectionOpen Windows Security settings

  2. Select a network profile: Domain network, Private network, or Public network.

  3. Under Microsoft Defender Firewall, switch the setting to On. If your device is connected to a network, network policy settings might prevent you from completing these steps. For more info, contact your administrator.

  4. To turn it off, switch the setting to Off. Turning off Microsoft Defender Firewall could make your device (and network, if you have one) more vulnerable to unauthorized access. If there's an app you need to use that's being blocked, you can allow it through the firewall, instead of turning the firewall off.

Note: If you get errors, or if the setting won't turn on, you can use the troubleshooter and then try again.

What is a Firewall?

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.