Firewall in Microsoft Defender for Business
Defender for Business includes firewall capabilities through Windows Defender Firewall. Firewall protection helps secure devices by establishing rules that determine what network traffic is permitted to flow to and from devices.
You can use firewall protection to specify whether to allow or to block connections on devices in various locations. For example, your firewall settings can allow inbound connections on devices that are connected to your company's internal network but prevent connections when the device is on a network with untrusted devices.
This article describes:
- How to view or edit your firewall policies and custom rules
- Default firewall settings in Defender for Business
- Firewall settings you can configure in Defender for Business
Depending on whether you're using the Microsoft Defender portal or Intune to manage your firewall protection, use one of the following procedures.
Go to the Microsoft Defender portal (https://security.microsoft.com), and sign in.
In the navigation pane, choose Device configuration. Policies are organized by operating system and policy type.
Select an operating system tab (such as Windows clients).
Expand Firewall to view your list of policies.
Select a policy to view the details. To make changes or to learn more about policy settings, see the following articles:
Go to https://intune.microsoft.com and sign in. You're now in the Intune admin center.
Select Endpoint security.
Select Firewall to view your policies in that category. Custom rules that are defined for firewall protection are listed as separate policies. To get help with managing your security settings in Intune, start with Manage endpoint security in Microsoft Intune.
You can use custom rules to define exceptions for your firewall policies. That is, you can use custom rules to block or allow specific connections.
Go to the Microsoft Defender portal (https://security.microsoft.com) and sign in.
Go to Endpoints > Device configuration, and review the list of policies.
In the Firewall section, select an existing policy, or add a new policy.
On the Configuration settings step, review the settings. Make any needed changes to Domain network, Public network, and Private network.
To create a custom rule, follow these steps:
Under Custom rules, choose + Add rule. (You can have up to 150 custom rules.)
On the Create new rule flyout, specify a name and description for the rule.
Select a profile. (Your options include Domain network, Public network, or Private network.)
In the Remote address type list, select either IP or Application file path.
In the Value box, specify an appropriate value. Depending on what you selected in step 6d, you might specify an IP address, an IP address range, or an application file path. (See Firewall settings.)
On the Create new rule flyout, select Create rule.
On the Configuration settings screen, choose Next.
On the Review your policy screen, review the changes that were made to firewall policy settings. Make any needed changes, and then choose Create policy.
Go to the Microsoft Defender portal (https://security.microsoft.com) and sign in.
Go to Endpoints > Device configuration, and review the list of policies.
In the Firewall section, select an existing policy, or add a new policy.
Under Custom rules, review the list of rules.
Select a rule, and then choose Edit. Its flyout opens.
To edit your custom rule, follow these steps:
On the Edit rule flyout, review and edit the rule's name and description.
Review and if necessary, edit the rule's profile. (Your options include Domain network, Public network, or Private network.)
In the Remote address type list, select either IP or Application file path.
In the Value box, specify an appropriate value. Depending on what you selected in step 6c, you might specify an IP address, an IP address range, or an application file path. (See Firewall settings.)
Set Enable rule to On to make the rule active. Or, to disable the rule, set the switch to Off.
On the Edit rule flyout, select Update rule.
On the Configuration settings screen, choose Next.
On the Review your policy screen, review the changes that were made to firewall policy settings. Make any needed changes, and then choose Create policy.
Go to the Microsoft Defender portal (https://security.microsoft.com) and sign in.
Go to Endpoints > Device configuration, and review the list of policies.
In the Firewall section, select an existing policy, or add a new policy.
Under Custom rules, review the list of rules.
Select a rule, and then choose Delete. Its flyout opens.
On the confirmation screen, choose Delete.
Defender for Business includes default firewall policies and settings to help protect your company's devices from day one. As soon as your company's devices are onboarded to Defender for Business, your default firewall policy works as follows:
- Outbound connections from devices are allowed by default, regardless of location.
- When devices are connected to your company's network, all inbound connections are blocked by default.
- When devices are connected to a public network or a private network, all inbound connections are blocked by default.
In Defender for Business, you can define exceptions to block or allow incoming connections. You define these exceptions by creating custom rules.
Defender for Business includes firewall protection through Windows Defender Firewall. The following table lists settings that can be configured in Defender for Business.
Setting | Description |
---|---|
Domain network | The domain network profile applies to your company's network. Firewall settings for your domain network apply to inbound connections that are initiated on other devices on the same network. By default, incoming connections is set to Block all. |
Public network | The public network profile applies to networks that you can use in a public location, such as a coffee shop or airport. Firewall settings for public networks apply to inbound connections that are initiated on other devices on the same network. Because a public network can include devices that you don't know or don't trust, incoming connections is set to Block all by default. |
Private network | The private network profile applies to networks in a private location, such as your home. Firewall settings for private networks apply to inbound connections that are initiated on other devices on the same network. In general, on a private network, it's assumed that all other devices on the same network are trusted devices. However, by default, incoming connections is set to Block all. |
Custom rules | Custom rules let you block or allow specific connections. For example, suppose that you want to block all incoming connections on devices that are connected to a private network except for connections through a specific app on a device. In this case, you'd set Private network to block all incoming connections, and then add a custom rule to define the exception. You can use custom rules to define exceptions for specific files or apps, an Internet protocol (IP) address, or a range of IP addresses. Depending on the type of custom rule you're creating, here are some examples of values you could use: |