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 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