Windows firewall management

When a Windows firewall management policy is enforced on an endpoint, Enforce starts the MpsSvc (Windows Firewall) service on that endpoint.

Note: Settings in Windows firewall policies are not applied on endpoints where there are existing firewall settings managed by a GPO linked to a domain. In this scenario, the enforcement status is Not Applied with the reason GPO firewall rules found on endpoint.
  1. In the Firewall Profiles section, configure the policy profiles for Domain, Private, and Public. For more information about profiles, see Microsoft Documentation: Firewall profiles.

    To configure additional per-profile settings, click the expand arrow:

    • Firewall Settings: Configure Display a Notification and Allow Unicast Response.

    • Rule Merging: Configure Apply Local Firewall Rules and Apply Local Connection Security Rules.

    • Logging: Configure Log Name, Log Size Limit (a whole number from 1 to 32 MB), Log Successful Packets, and Log Dropped Packets.

  2. For Network Selection, choose Default, Enabled, or Disabled

  3. (Optional) Create firewall rules:

    Manually create a firewall rule
    1. In the Firewall Rules section, click Add Rule.

    2. Complete the following fields for the rule and then click Create:

      Table 1. Fields in the Windows Firewall Management policy form

      Field

      Description

      Name

      Enter a brief name for the rule.

      Direction

      Select Outbound, Inbound, or Bi-directional for the direction of the connection.

      Action

      Select either Block or Allow as the action to perform for the rule.

      Network Protocol

      Select a protocol. If you specify UDP or TCP for the protocol, then you must specify at least one value in the following fields: Application Path, Local Addresses, Local Ports, Remote Addresses, Remote Ports, or Service Name.

      For more information about protocols, see Microsoft Documentation: Firewall Rule Properties Page: Protocols and Ports Tab.

      Group

      (Optional) You can specify a group name here or choose one that already exists that can help organize your firewall rules.

      Profiles

      Select the applicable profiles. If you do not select one or more profiles, the rule is created as if all profiles were selected.

      Application Path

      (Optional) An example of an application path is C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe.

      Local Addresses

      (Optional) Use this field to target the rule to specific local IP addresses. Separate entries with commas.

      Each entry can be a single IPv4 or IPv6 address, a subnet, or a range. For example, 192.168.1.1-192.168.1.9 or fe80::1-fe80::9. You can also enter Any. Firewall address keywords, such as DNS or LocalSubnet, are valid only in the Remote Addresses field.

      Addresses are validated as you type. An entry that is not valid is flagged before you save the policy.

      Remote Addresses

      (Optional) This field can be used to target the rule to a specific remote IP address. Separate entries with commas.

      Each entry can be a single IPv4 or IPv6 address, a subnet, or a range, for example fe80::1-fe80::9. Addresses are validated as you type.

      You can also use Microsoft RemoteAddress keywords such as LocalSubnet, DNS, DHCP, WINS, DefaultGateway, Internet, Intranet, IntranetRemoteAccess, PlayToDevice, PlayToRenderers, and CaptivePortal. Keywords are not case-sensitive. To limit a keyword to IPv4 or IPv6 addresses, add 4 or 6 to the end of the keyword, for example DNS4 or DNS6. For more information, see Microsoft Documentation: New-NetFirewallRule.

      Service Name

      (Optional) This field can be used for a Windows Service Display name.

      Note: Port values must be in the range 1–65535.
    Import firewall rules from a Windows TSV file
    1. In Windows, go to Windows Firewall Advanced Security.

    2. Right-click on Inbound Rules and click Export List..., and then save the file as a Text (Tab Delimited) .txt file.
      Example screen capture from Windows that show the options to export a firewall rule
    3. In the Firewall Rules section, click Import > Import from Windows TSV file.

    4. Click Select TSV File to locate the files that contains the exported firewall rules and click Open. The Import window shows the file name and how many rules are being imported.

    5. Select the Direction and then click Proceed.

    6. Repeat these steps for Outbound Rules to export them from Windows and import them into Enforce.

      If the file you are importing does not include a Service column, a warning occurs. If your firewall rules depend on the Service field, add the Service column and re-export the firewall rules from Windows.

    Add a Service column
    1. On a Windows endpoint, go to Windows Firewall with Advanced Security.

    2. Click View > Add/Remove Columns.

    3. Select Service from Available columns, click Add and then click OK.
      service_column
    4. Right-click on Inbound Rules or Outbound Rules, click Export List... and then save the file as a Text (Tab Delimited) .txt file.

    Import firewall rules from Tanium Client managed endpoints
    Note: Before you can import firewall rules into Enforce from a Windows TSV file, you must export them from Windows.
    1. In the Firewall Rules section, click Import > Import Rules from Tanium Endpoints.

    2. In the Import Rules from Tanium Endpoints window, select a Computer Group or Computer Name and select the existing rules on Tanium Client managed endpoints that you want to import.

    3. Click Import Rules.