π Google GCE Instance IP Forwarding is not disabled. π’
- Contextual name: π Instance IP Forwarding is not disabled. π’
- ID:
/ce/ca/google/compute-engine/disable-instance-ip-forwarding
- Located in: π Google GCE
Flagsβ
- π’ Policy with categories
- π’ Policy with type
- π’ Production policy
Our Metadataβ
- Policy Type:
COMPLIANCE_POLICY
- Policy Category:
SECURITY
Similar Policiesβ
- Cloud Conformity
Logicβ
- π§ prod.logic.yaml π’
Descriptionβ
Descriptionβ
Compute Engine instance cannot forward a packet unless the source IP address of the packet matches the IP address of the instance. Similarly, GCP won't deliver a packet whose destination IP address is different than the IP address of the instance receiving the packet. However, both capabilities are required if you want to use instances to help route packets.
Forwarding of data packets should be disabled to prevent data loss or information disclosure.
Rationaleβ
Compute Engine instance cannot forward a packet unless the source IP address of the packet matches the IP address of the instance. Similarly, GCP won't deliver a packet whose destination IP address is different than the IP address of the instance receiving the packet. However, both capabilities are required if you want to use instances to help route packets. To enable this source and destination IP check, disable the
canIpForward
field, which allows an instance to send and receive packets with non-matching destination or source IPs.Impactβ
... see more
Remediationβ
Remediationβ
You only edit the
canIpForward
setting at instance creation time. Therefore, you need to delete the instance and create a new one wherecanIpForward
is set tofalse
.From Google Cloud Consoleβ
- Go to the
VM Instances
page by visiting: https://console.cloud.google.com/compute/instances.- Select the
VM Instance
you want to remediate.- Click the
Delete
button.- On the
VM Instances
page, clickCREATE INSTANCE
.- Create a new instance with the desired configuration. By default, the instance is configured to not allow IP forwarding.
From Google Cloud CLIβ
Delete the instance:
gcloud compute instances delete INSTANCE_NAME
Create a new instance to replace it, with
IP forwarding
set toOff
gcloud compute instances create
policy.yamlβ
Linked Framework Sectionsβ
Section | Sub Sections | Internal Rules | Policies | Flags |
---|---|---|---|---|
πΌ CIS GCP v3.0.0 β πΌ 4.6 Ensure That IP Forwarding Is Not Enabled on Instances - Level 1 (Automated) | 1 | |||
πΌ Cloudaware Framework β πΌ Secure Access | 43 |