MEDIUM
Source
CloudSploit
ID
ip-forwarding-disabled

IP Forwarding Disabled

Ensures that IP forwarding is disabled on all instances

Disabling IP forwarding ensures that the instance only sends and receives packets with matching destination or source IPs.

Follow the appropriate remediation steps below to resolve the issue.

  1. Log into the Google Cloud Platform Console.

  2. Scroll down the left navigation panel and choose the “Compute Engine” to select the “VM Instances” option. Step

  3. On the “VM Instances” page, select the VM instance which needs to be verified. Step

  4. On the “VM instance details” page, scroll down and check “IP forwarding” under the “Network Interfaces” is enabled or not for VM instances.Step

  5. Repeat steps number 2 - 4 to verify other VM instances in the network.

  6. Navigate to “Compute Engine”, choose the “VM instances” and select the “VM instance” which needs to disabled “IP forwarding” for VM instance.Step

  7. On the “VM instance details” page, select the “CREATE SIMILAR” button at the top.Step

  8. Enter the “Name” of the instance, Region, Choose the “Machine Configuration” as per the previous instance had.Step

  9. Scroll down the “Create an Instance” page, click on the “Management, security, disks, networking, sole tenancy” option, choose “Networking” and click on the pencil icon next to the “default” under “Network Interfaces.”Step

  10. On the “Network Interfaces” tab, scroll down the page and select “OFF” from the dropdown menu under the “IP Forwarding” option.Step

  11. Click on the “Create” button at the bottom to make the changes.Step

  12. Once the new similar instance is up and running, delete the instance with “IP forwarding” enabled.

  13. Repeat steps number 6 - 12 so that IP forwarding settings can only be chosen when creating a new instance. Delete the affected instances and redeploy with IP forwarding disabled.