Getting started with the Edge WAF

If your web application uses a Fastly CDN or Compute service, you can integrate the Next-Gen WAF into your request flow by enabling an Edge WAF deployment. Like your CDN or Compute service, Fastly delivers the Edge WAF through our global network of POPs. This means that you don’t have to make any changes to your hosting environment (e.g., installing clients or applications locally). The Edge WAF is able to process a request within a few milliseconds.

Prerequisites

Before enabling the Edge WAF, be sure you have the following prerequisites in place:

Quick start

Once all prerequisites have been met, you can enable the Edge WAF for your web application. Follow the instructions in the Fastly control panel tab if you'd like to deploy the Edge WAF on a Compute service and have access to the Next-Gen WAF in the Fastly control panel or if the CDN service you're deploying the Edge WAF on meets one of the following conditions:

  • The service has the ngwaf_oob_enabled parameter disabled (false) and doesn't use mutual TLS (mTLS).
  • The service has the ngwaf_oob_enabled parameter enabled (true). When this condition is met, it doesn’t matter if the service uses or doesn’t use mTLS.

Otherwise, follow the instructions in the Next-Gen WAF API tab.

  1. Fastly control panel
  2. Next-Gen WAF API

To deploy the Next-Gen WAF on an existing CDN or Compute service, complete the following steps:

  1. Log in to the Fastly control panel.
  2. From the Home page, select the appropriate service. You can use the search box to search by ID, name, or domain.
  3. Click Service configuration and then Security.

  4. Fill out the following deployment settings on the Next-Gen WAF card:

    Edit Next-Gen WAF deployment settings

    • From the Workspace menu, select the workspace that you want to link to the service. If your account only has one workspace, this field is read-only.
    • (CDN services only) In the % of traffic field, enter the percentage of traffic that you want the Next-Gen WAF to inspect. When set to 100, all traffic to your service is inspected. When the value is less than 100, a random sample of the specified percentage is inspected.
  5. Click the Next-Gen WAF switch to the On position.

  6. In the confirmation window, click Update all versions.

  7. (Optional) Use attack tooling to verify that the Next-Gen WAF is monitoring your web application and identifying malicious and anomalous requests.

What’s next

Learn more about how the Edge WAF works and adjust the protection of your web application as needed.