Create firewall endpoints

This page explains how to configure a firewall endpoint and associate it with a Virtual Private Cloud (VPC) network by using the Google Cloud console and Google Cloud CLI.

You create a firewall endpoint at a zonal level, and then associate it with one or more VPC networks in the same zone. If you have enabled Layer 7 inspection in the firewall policy associated with your VPC network, the matched traffic is transparently intercepted and forwarded to the firewall endpoint.

You can create a firewall endpoint with or without jumbo frame support. For information about the packet sizes supported by firewall endpoints, see Supported packet size.

To check the progress of the operations listed on this page, make sure that your user role has the following Compute Network User (roles/compute.networkUser) permissions:

  • networksecurity.operations.get
  • networksecurity.operations.list

Before you begin

Roles

To get the permissions that you need to create firewall endpoints, ask your administrator to grant you the necessary IAM roles on your organization or project. For more information about granting roles, see Manage access.

Quotas

To view quotas for firewall endpoints and associations, see Quotas and limits.

Create a firewall endpoint

Create a firewall endpoint in a specific zone.

Organization-level endpoint

You can create a firewall endpoint at the organization level. These endpoints support only organization-level security profile groups.

Console

  1. In the Google Cloud console, go to the Firewall endpoints page.

    Go to Firewall endpoints

  2. In the project selector menu, select your organization.

  3. Click Create.

  4. In the Region list, select the region where you want to create the firewall endpoint.

  5. In the Zone list, select the zone where you want to create the firewall endpoint.

  6. Enter a name in the Name field.

  7. In the Billing project list, select the Google Cloud project that you want to use for billing the firewall endpoint.

  8. Click Continue.

  9. If you want the endpoint to support jumbo frames, select the Enable jumbo frames support checkbox; otherwise, clear this checkbox.

  10. Click Continue.

  11. If you want to add a firewall endpoint association, click Add endpoint association, else skip this step.

    1. In the Project list, select the Google Cloud project where you want to create the firewall endpoint association.
    2. If the Compute Engine API or Network Security API are not enabled for the Google Cloud project, click Enable.
    3. In the Network list, select the network that you want to associate to the firewall endpoint.
    4. In the TLS inspection policy list, select the TLS inspection policy that you want to add to this association.
    5. To add another association, click Add endpoint association.
  12. Click Create.

gcloud

To create a firewall endpoint, use the gcloud network-security firewall-endpoints create command:

gcloud network-security firewall-endpoints create NAME \
    --organization ORGANIZATION_ID \
    --zone ZONE \
    --enable-jumbo-frames \
    --billing-project BILLING_PROJECT_ID

Replace the following:

  • NAME: the name of the firewall endpoint.

  • ORGANIZATION_ID: the organization where the endpoint is activated.

  • ZONE: the zone where the endpoint is activated.

  • BILLING_PROJECT_ID: a Google Cloud project ID to be used for billing of the firewall endpoint.

To create a firewall endpoint that supports jumbo frames up to 8,500 bytes in size, use the optional --enable-jumbo-frames flag. Skip this flag to create an endpoint without jumbo frame support. For information about the packet sizes supported by firewall endpoints, see Supported packet size.

To associate the firewall endpoint to a VPC network, see Create firewall endpoint associations.

Terraform

Use the google_network_security_firewall_endpoint Terraform resource.

resource "google_network_security_firewall_endpoint" "default" {
  name               = "my-firewall-endpoint"
  parent             = "organizations/123456789"
  location           = "us-central1-a"
  billing_project_id = "my-project-name"
  enable_jumbo_frames = true
}

To create a firewall endpoint that supports jumbo frames up to 8,500 bytes in size, set the field enable_jumbo_frames to True. To create a firewall endpoint that doesn't support jumbo frames, set this field to False. For information about the packet sizes supported by firewall endpoints, see Supported packet size.

To learn how to apply or remove a Terraform configuration, see Basic Terraform commands.

Project-level endpoint

You can create a firewall endpoint at the project level. These endpoints support both organization-level and project-level security profile groups.

gcloud

To create a firewall endpoint, use the gcloud beta network-security firewall-endpoints create command:

gcloud beta network-security firewall-endpoints create NAME \
    --project PROJECT_ID \
    --zone ZONE \
    --enable-jumbo-frames

Replace the following:

  • NAME: the name of the firewall endpoint.

  • PROJECT_ID: the project where the endpoint is activated.

  • ZONE: the zone where the endpoint is activated.

To create a firewall endpoint that supports jumbo frames up to 8,500 bytes in size, use the optional --enable-jumbo-frames flag. Skip this flag to create an endpoint without jumbo frame support. For information about the packet sizes supported by firewall endpoints, see Supported packet size.

To associate the firewall endpoint to a VPC network, see Create firewall endpoint associations.

What's next