跳转到主要内容

Firewall

import { Render } from "~/components";

The Firewall device posture attribute ensures that a firewall is running on a device.

Prerequisites

  • <Render file="posture/prereqs-warp-is-deployed" product="cloudflare-one" params={{ name: "Cloudflare One Client Checks", link: "/cloudflare-one/reusable-components/posture-checks/client-checks/", }} />

Enable the firewall check

  1. In the Cloudflare dashboard, go to Zero Trust > Reusable components > Posture checks.

  2. Go to Cloudflare One Client checks and select Add a check.

  3. Select Firewall.

  4. Enter a descriptive name for the check.

  5. Select your operating system.

  6. Configure Enable firewall check based on your desired security policy:

    • Enabled: (Recommended) The posture check passes only if the firewall is running.
    • Disabled: The posture check passes only if the firewall is turned off.

    :::note The Enable firewall check toggle does not turn the posture check on or off; rather, the toggle determines whether the Cloudflare One Client looks for an active or inactive firewall. :::

  7. Select Save.

Next, go to Insights > Logs > Posture logs and verify that the firewall check is returning the expected results.

Validate firewall status

Operating systems determine firewall configuration in various ways. Follow the steps below to understand how the Cloudflare One Client determines if the firewall is enabled.

On macOS

macOS has two firewalls: an application-based firewall and a port-based firewall. The Cloudflare One Client will report a firewall is enabled if either firewall is running.

Application-based firewall

  1. Open System Settings and go to Network.
  2. Verify that Firewall is Active.

Port-based firewall

  1. Open Terminal and run:

    sudo /sbin/pfctl -s info
    
  2. Verify that Status is Enabled.

On Windows

  1. Open PowerShell and run:

    Get-NetFirewallProfile -PolicyStore ActiveStore -Name Public
    
  2. Verify that Enabled is True.