Remediation
You only edit the canIpForward setting at instance creation time. Therefore, you need to delete the instance and create a new one where canIpForward is set to false.
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_NAME -
Create a new instance to replace it, with
IP forwardingset toOffgcloud compute instances create