> ## Documentation Index
> Fetch the complete documentation index at: https://docs.aviatrix.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Example Configuration for Palo Alto Network VM-Series in GCP

> In this document, we provide an example to set up the VM-Series for you to validate that packets are indeed sent to the VM-Series for VPC-to-VPC and from VPC to internet traffic inspection.

In this document, we provide an example to set up the VM-Series for you to
validate that packets are indeed sent to the VM-Series for VPC-to-VPC and from
VPC to internet traffic inspection.

VM-Series in AWS can be set up using the guide

<a href={"/docs/enterprise/" + "10.1" + "/reference/security/firenet/firewall-paloalto-configure-aws"}>Palo Alto Networks VM-Series AWS Example</a>
.

VM-Series in Azure can be set up using the guide

<a href={"/docs/enterprise/" + "10.1" + "/reference/security/firenet/firewall-paloalto-configure-azure"}>Palo Alto Networks VM-Series Azure Example</a>
.

<Note>
  You must first have launched a firewall instance in GCP.

  Palo Alto firewall versions greater than 9.1.3 are not supported in the GCP
  Transit FireNet configuration.
</Note>

After the firewall is launched, you can access its management UI from the
Firewall tab.

## Downloading VM-Series Access Key

After

<a href={"/docs/enterprise/" + "10.1" + "/guides/security/firenet/firewall-launch-attach"}>this step</a>
in the workflow is completed, you can click the vertical ellipsis button

<img
  src={
"/docs/enterprise/" + "10.1" + "/reference/dcf/images/threedot.png"
}
  alt="25"
  style={{ display: "inline", verticalAlign: "middle", height: "1em" }}
/>

and select **Download Access Key**.

<Note>
  If you get a download error, usually it means the VM-Series is not ready. Wait
  until it is ready, refresh the browser and then try again.
</Note>

## Resetting VM-Series Password

<Note>
  After you download the .pem file, change the file permission to 400. If you
  are asked to enter a password during the login, the VM-Series is still not
  ready. Wait and try again. It usually takes up to 15 minutes for the VM-Series
  to be ready. When the VM-Series is ready, you will no longer be prompted for a
  password.
</Note>

For Metered AMI, open a terminal and run the following command.

```
ssh -i <private_key.pem> admin@<public-ip_address>
configure
set mgt-config users admin password
commit
```

For BYOL, open a terminal and run the following command.

```
ssh -i <private_key.pem> admin@<public-ip_address>
configure
set mgt-config users admin password
set deviceconfig system dns-setting servers primary <ip_address>
commit
```

Terminate the SSH session.

## Logging in to the VM-Series

In Aviatrix CoPilot, navigate to Security > FireNet > Firewall.

Click the Management UI link for the firewall. It takes you to the VM-Series you
just launched.

Login with Username "admin". The password is the password you set in the
previous step.

## Dynamic Updates

From Device > Dynamic Updates in the Palo Alto firewall UI, click on **Check
Now** to download and install the latest versions of Applications and Threats
and Wildfire updates.

Click on **Check Now** again to download and install the latest version of
Antivirus.

## [Configuring VM-Series ethernet1/1 with WAN Zone](https://legacy.docs.aviatrix.com/documentation/latest/security/paloalto-ethernet-wan-gcp.html)

After logging in, select the **Network** tab to see a list of ethernet
interfaces. Click ethernet1/1 and configure as per the following screenshot.

1. Select the **Network** tab.
2. Click **ethernet1/1**.
3. Select **layer3** for Interface Type.
4. Select the **Config** tab in the popup Ethernet Interface window.
5. Select the default for Virtual Router at the Config tab.
6. Click **New Zone for Security Zone** to create a WAN zone.
7. At the next popup screen, name the new zone "WAN" and click **OK**.

<img src="https://mintcdn.com/aviatrix-14b37c43/-mwrdwN2SbwuEu52/images/reference/security/firenet/new-zone-gcp.png?fit=max&auto=format&n=-mwrdwN2SbwuEu52&q=85&s=e3b872bf9b4a4965091697869a48f26c" alt="new_zone" width="1526" height="696" data-path="images/reference/security/firenet/new-zone-gcp.png" />

8. Select **IPV4** tab in the popup Ethernet Interface window.
9. Select **DHCP Client**.
10. Uncheck the **Automatically create default route pointing to default gateway
    provided by server**, as shown below.

<img src="https://mintcdn.com/aviatrix-14b37c43/-mwrdwN2SbwuEu52/images/reference/security/firenet/ipv4-gcp.png?fit=max&auto=format&n=-mwrdwN2SbwuEu52&q=85&s=174e6c130fefaff8b03783b57d63db74" alt="ipv4" width="1494" height="812" data-path="images/reference/security/firenet/ipv4-gcp.png" />

Click **Commit**. Once Commit is complete, you should see the Link State turn
green at the Network page for ethernet1/1.

## Configuring VM-Series ethernet1/2 with LAN Zone

Repeat the steps from
[Configuring VM-Series ethernet1/1 with WAN Zone](#configuring-vm-series-ethernet11-with-wan-zone)
section above for ethernet1/2. Name the new zone LAN.

Click **Commit**. Once Commit is complete, you should see the Link State turn
green at the Network page for ethernet1/2.

## GCP VM-Series Health Check

Configuring a DNAT rule for Health Check is a mandatory requirement in GCP. Go
to Polices > NAT > Add NAT. See the example below for NAT configurations.

<img src="https://mintcdn.com/aviatrix-14b37c43/-mwrdwN2SbwuEu52/images/reference/security/firenet/health-check-dnat.png?fit=max&auto=format&n=-mwrdwN2SbwuEu52&q=85&s=c0828b0a11d909e046c0b336ad5e7486" alt="health_check_dnat" width="1910" height="387" data-path="images/reference/security/firenet/health-check-dnat.png" />

Also, follow
[VM-Series Health Check Steps](https://legacy.docs.aviatrix.com/documentation/latest/security/paloalto-vmseries-gcp-healthcheck.html)
to allow Google Load Balancer to check firewall instance health at regular
intervals.

## Configuring Basic Allow-all Policy

In this step, we will configure a basic traffic security policy that allows
traffic to pass through the VM-Series firewall.

1. Select the **Policies** tab.
2. Select the **+Add** in the bottom-left corner to create a new policy.
3. Select the **General** tab. Name the policy Allow-all.
4. Select the **Source** tab. Select **Any** for both panels.
5. Select the **Destination** tab. Select **Any** for both panels.
6. Select the **Application** tab. Select **Any**.
7. Click **OK**.
8. Click **Commit** to install the Allow-all policy.

## Configuring NAT for Egress

If you would also like to enable NAT to test egress, follow these steps.

1. Navigate to Policies > NAT and click **Add**.
2. Select the **General** tab.
3. Name the policy and click Original Packet.
4. At Source Zone, click **Add**, select "LAN".
5. At Destination Zone, select WAN.
6. At Destination Interface, select Ethernet1/1, as shown below.

<img src="https://mintcdn.com/aviatrix-14b37c43/-mwrdwN2SbwuEu52/images/reference/security/firenet/nat-original-packet-gcp.png?fit=max&auto=format&n=-mwrdwN2SbwuEu52&q=85&s=e4c7cc53cd1ecac13ce5d1c7f9202298" alt="nat_original_packet" width="2448" height="1198" data-path="images/reference/security/firenet/nat-original-packet-gcp.png" />

7. Click **Translated Packet**. At Translation Type, select **Dynamic IP And
   Port**. At Address Type, select **Interface Address**.
8. At Interface, select **ethernet1/1**, as shown below.

<img src="https://mintcdn.com/aviatrix-14b37c43/-mwrdwN2SbwuEu52/images/reference/security/firenet/nat-translated-packet-gcp.png?fit=max&auto=format&n=-mwrdwN2SbwuEu52&q=85&s=ecde7871987349cdc494ef7070721a56" alt="nat_translated_packet" width="1688" height="616" data-path="images/reference/security/firenet/nat-translated-packet-gcp.png" />

## Validating the Configuration

Now your firewall instance is ready to receive packets.

The next step is to validate your configurations and polices using FlightPath
and Diagnostic Tools (ping, traceroute etc.).

## Viewing Traffic Log

You can view if traffic is forwarded to the firewall instance by logging in to
the VM-Series console.

Click **Monitor**.

Start pinging packets from one Spoke VPC to another Spoke VPC where one or both
of the Network Domains are connected to Firewall Network Security Domain.
