Ensure that the virtual machine (VM) instances allowed to use IP forwarding, that belong to your project, folder, or organization, are defined using the "Restrict VM IP Forwarding" policy. This constraint policy helps you improve security and achieve regulatory compliance by explicitly defining the resource name of the VM instances allowed to use IP forwarding, i.e. projects/<project-id>/zones/<instance-zone>/instances/<instance-name>. You can also define the list of allowed instances within an a project, folder, or organization, using the following format: under:organizations/<organization-id>, under:folders/<folder-id>, under:projects/<project-id>. The set of VM instances that can enable IP forwarding in order to act as routers/packet forwarders, must be configured in the conformity rule settings, on your Trend Cloud One™ – Conformity account console.
By default, any virtual machine instance can enable IP forwarding in any VPC network. When IP forwarding is enabled on a virtual machine`s network interface (NIC), it allows the VM to act as a router and receive traffic addressed to other destinations. Because IP forwarding is rarely required, except when the virtual machine (VM) is used as a network virtual appliance, the feature must be enabled only on those VM instances that requires it. With "Restrict VM IP Forwarding" constraint policy, you can define the set of virtual machine instances that can enable IP forwarding within your GCP organization.
Audit
To determine if VM IP forwarding restriction is enabled at the GCP organization level, perform the following operations:
Remediation / Resolution
To implement virtual machine IP forwarding restriction at the GCP organization level, enable and configure the "Restrict VM IP Forwarding" constraint policy by performing the following operations:
References
- Google Cloud Platform (GCP) Documentation
- Resource Manager
- Organization policy constraints
- Creating and managing organization policies
- GCP Command Line Interface (CLI) Documentation
- gcloud organizations list
- gcloud alpha resource-manager org-policies describe
- gcloud beta resource-manager org-policies set-policy