๐ก๏ธ 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 - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicโ
- ๐ง prod.logic.yaml๐ข
Similar Policiesโ
- Cloud Conformity: Disable IP Forwarding for Virtual Machine Instances
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
canIpForwardfield, 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
canIpForwardsetting at instance creation time. Therefore, you need to delete the instance and create a new one wherecanIpForwardis set tofalse.From Google Cloud Consoleโ
- Go to the
VM Instancespage by visiting: https://console.cloud.google.com/compute/instances.- Select the
VM Instanceyou want to remediate.- Click the
Deletebutton.- On the
VM Instancespage, 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_NAMECreate a new instance to replace it, with
IP forwardingset toOffgcloud compute instances create