Creating the packet mirroring policy
This policy mirrors the contents of VPC 1 and reflects them on the mirror VPC.
To create the packet mirroring policy:
- Go to VPC network > Packet mirroring > CREATE POLICY.
- From the Region dropdown list, select the same region selected for previous resources.
- Under Policy enforcement, select Enabled. Click CONTINUE.
- Select the VPC network:
- Select Mirrored source and collector destination are in separate, peered VPC networks.
- From the Mirrored source VPC network dropdown list, select VPC 1.
- From the Collector destination VPC network dropdown list, select the mirror VPC. Click CONTINUE.
- Click Select one or more subnetworks.
- From the dropdown list, select VPC 1. Click CONTINUE.
- The collector destination must be a GCP load balancer. From the Collector destination dropdown list, select the frontend name of the load balancer that you created in To create an internal load balancer for the packet mirroring policy:. Click CONTINUE.
- Select Mirror all traffic. Alternatively, you can monitor traffic between specific instances using instance tags.