> For the complete documentation index, see [llms.txt](https://cortex-docs.paloaltonetworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-vm-instance-template-with-ip-forwarding-enabled.md). Agents can also search and read this documentation through its [MCP server](https://cortex-docs.paloaltonetworks.com/~gitbook/mcp).

# GCP VM instance template with IP forwarding enabled

### Synopsis

| Field               | Value                                               |
| ------------------- | --------------------------------------------------- |
| Rule Type           | Detection                                           |
| Finding Type        | GCP VM instance template with IP forwarding enabled |
| Finding ID          | 60000550                                            |
| Generates a Finding | This detection rule also generates a finding        |
| Severity            | Informational                                       |
| Category            | CONFIGURATION                                       |
| Cloud Providers     | GCP                                                 |
| Platform Module     | CSPM                                                |
| Asset Types         | GOOGLE\_COMPUTE\_ENGINE\_INSTANCE\_TEMPLATE         |

### Description

Unintentional IP forwarding enabled on GCP VM instance templates creates a significant security risk. This allows VMs to act as routers, potentially exposing internal networks to external threats.

IP forwarding, a feature enabling VMs to route traffic, is often misconfigured. Enabling it without proper justification exposes the VM and potentially the entire network to attacks. Untrusted traffic can be routed through the VM, bypassing network security controls. Attackers could leverage this to perform man-in-the-middle attacks or pivot laterally within the network.

The impact of this misconfiguration is substantial. Compromised VMs with IP forwarding enabled become entry points for attackers to infiltrate the organization's network, leading to data breaches, service disruption, and reputational damage. Disabling IP forwarding ensures that only intended traffic reaches the VM, strengthening the network's security posture.

To mitigate this risk, ensure that IP forwarding is disabled on all VM instance templates unless explicitly required.

### Remediation

GCP VM instance templates are used to create VM instances based on a preexisting configuration. GCP VM instance templates IP forwarding feature cannot be updated. After an instance template is created, the IP forwarding field becomes read-only. So to fix this alert, Create a new VM instance template with IP forwarding disabled, migrate all required data from the reported template to the newly created one, and delete the reported VM instance template.

To create a new VM Instance template with IP forwarding disabled:

1. Login to GCP Portal
2. Go to 'Computer Engine' (Left Panel)
3. Go to 'Instance templates'
4. Click on 'CREATE INSTANCE TEMPLATE'
5. Specify the mandatory parameters as required
6. Click 'Management, security, disk, networking, sole tenancy'
7. Click 'Networking'
8. Click on the specific Network interfaces
9. Set 'IP forwarding' to 'Off'
10. Click on 'Create' button

To Delete VM instance template which has IP forwarding enabled:

1. Login to GCP Portal
2. Go to Computer Engine (Left Panel)
3. Go to 'Instance templates'
4. From the list, choose the reported templates
5. Click on the 'Delete' button


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://cortex-docs.paloaltonetworks.com/posture-rules/cloud-saas-active-directory-posture-rules/cortex-posture-query-based-rules/detection-rules-by-name/gcp-vm-instance-template-with-ip-forwarding-enabled.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
