Global network firewall policies (original) (raw)

Global network firewall policies enable you to batch update all firewall rules by grouping them into a single policy object. You can assign network firewall policies to a Virtual Private Cloud (VPC) network. These policies contain rules that can explicitly deny or allow connections.

Specifications

Global network firewall policy rule details

For more information about the components and parameters of rules in a global network firewall policy, see Firewall policy rule components.

The following table summarizes key differences between global network firewall policy rules and VPC firewall rules:

Global network firewall policy rules VPC firewall rules
Priority number Must be unique within a policy Duplicate priorities allowed
Service accounts as targets Yes Yes
Service accounts as sources(ingress rules only) No Yes
Tag type Secure tag Network tag
Name and description Policy name, policy and rule description Rule name and description
Batch update Yes—for policy clone, edit, and replace functions No
Reuse Yes No
Quota Attribute count—based on a total complexity of each rule in the policy Rule count—complex and simple firewall rules have the same quota impact

Predefined rules

When you create a global network firewall policy, Cloud Next Generation Firewall adds predefined rules with the lowest priority to the policy. These rules are applied to any connections that don't match an explicitly defined rule in the policy, causing such connections to be passed down to lower-level policies or network rules.

To learn about the various types of predefined rules and their characteristics, see Predefined rules for firewall policies.

Identity and Access Management (IAM) roles

IAM roles govern the following actions with regard to global network firewall policies:

The following table describes which roles are necessary for each action:

Action Necessary role
Create a new global network firewall policy Compute Security Admin role (roles/compute.securityAdmin) on the project to which the policy belongs
Associate a policy with a network Compute Network Admin role (roles/compute.networkAdmin) on the project where the policy will live
Modify the policy by adding, updating, or deleting policy firewall rules Compute Security Admin role (roles/compute.securityAdmin) on the project where the policy will live
Delete the policy Compute Security Admin role (roles/compute.securityAdmin) on the project where the policy will live
View effective firewall rules for a VPC network Any of the following roles for the network: Compute Network Admin role (roles/compute.networkAdmin) Compute Network User role (roles/compute.networkUser) Compute Network Viewer role (roles/compute.networkViewer) Compute Security Admin role (roles/compute.securityAdmin) Compute Viewer role (roles/compute.viewer)
View effective firewall rules for a VM in a network Any of the following roles for the VM: Compute Instance Admin (v1) role (roles/compute.instanceAdmin) Instance Group Manager Service Agent role (roles/compute.instanceGroupManagerServiceAgent) Compute Security Admin role (roles/compute.securityAdmin) Compute Viewer role (roles/compute.viewer)

The following roles are relevant to global network firewall policies.

Role name Description
Compute Security Admin role (roles/compute.securityAdmin) Can be granted at the project or policy level. If granted for a project, lets users create, update, and delete global network firewall policies and their rules. At the policy level, lets users to update the policy rules, but not create or delete the policy. This role also lets users to associate a policy with a network.
Compute Network Admin role (roles/compute.networkAdmin) Granted at the project level or network level. If granted for a network, allows users to view the list of global network firewall policies.
Compute Viewer role (roles/compute.viewer) Compute Network User role (roles/compute.networkUser) Compute Network Viewer role (roles/compute.networkViewer) Allows users to view the firewall rules applied to the network or instance. Includes the compute.networks.getEffectiveFirewalls permission for networks and the compute.instances.getEffectiveFirewalls for instances.