More Info:

IP forwarding should be disabled on all instances. This ensures that the instance sends and receives packets with matching destination or source IPs.

Risk Level

Medium

Address

Security, Reliability

Compliance Standards

SOC2, CISGCP, CBP, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the IP forwarding misconfiguration in GCP using the GCP console, follow these steps:

  1. Open the GCP console and select the project where the misconfiguration needs to be remediated.

  2. In the left navigation pane, select “Compute Engine” and then select “VM instances”.

  3. Select the VM instance where IP forwarding needs to be disabled.

  4. Click on the “Edit” button at the top of the page.

  5. Scroll down to the “Network interfaces” section and select the network interface where IP forwarding needs to be disabled.

  6. In the “Network interface details” section, uncheck the “Enable IP forwarding” checkbox.

  7. Click on the “Save” button at the bottom of the page to save the changes.

  8. Repeat steps 3-7 for any other VM instances where IP forwarding needs to be disabled.

Once you have completed these steps, IP forwarding will be disabled for the selected VM instances, and the misconfiguration will be remediated.

Additional Reading: