Stay organized with collections Save and categorize content based on your preferences.
gcloud beta compute packet-mirrorings create
NAME
--collector-ilb
=COLLECTOR_ILB
--network
=NETWORK
[--async
] [--description
=DESCRIPTION
] [--no-enable
] [--filter-cidr-ranges
=[CIDR_RANGE
,…]] [--filter-direction
=DIRECTION
] [--filter-protocols
=[PROTOCOL
,…]] [--mirrored-instances
=[INSTANCE
,…]] [--mirrored-subnets
=[SUBNET
,…]] [--mirrored-tags
=[TAG
,…]] [--region
=REGION
] [GCLOUD_WIDE_FLAG …
]
(BETA)
Create a Compute Engine packet mirroring policy.
gcloud beta compute packet-mirrorings create my-pm --network my-network --region us-central1 --mirrored-subnets my-subnet --collector-ilb collector-fr --filter-protocols tcp
Mirror all traffic between instances with tag t1 and external server with IP 11.22.33.44 in us-central1, and send the mirrored traffic to the collector-fr Forwarding Rule.
gcloud beta compute packet-mirrorings create my-pm --network my-network --region us-central1 --mirrored-tags t1 --collector-ilb collector-fr --filter-cidr-ranges 11.22.33.44/32
NAME
--collector-ilb
=COLLECTOR_ILB
You can provide this as the full URL to the forwarding rule, partial URL, or name. For example, the following are valid values:
--network
=NETWORK
You can provide this as the full URL to the network, partial URL, or name. For example, the following are valid values:
--async
--description
=DESCRIPTION
--enable
--no-enable
to disable.
--filter-cidr-ranges
=[CIDR_RANGE
,…]
--filter-direction
=DIRECTION
ingress
, only ingress traffic is mirrored.egress
, only egress traffic is mirrored.both
(default), both directions are mirrored. DIRECTION
must be one of: both
, egress
, ingress
.--filter-protocols
=[PROTOCOL
,…]
--mirrored-instances
=[INSTANCE
,…]
--mirrored-subnets
=[SUBNET
,…]
--mirrored-tags
=[TAG
,…]
To read more about configuring network tags, read this guide: https://cloud.google.com/vpc/docs/add-remove-network-tags
The virtual machines with the provided tags must live in zones contained in the same region as this packet mirroring.
--region
=REGION
compute/region
property value for this command invocation.
--access-token-file
, --account
, --billing-project
, --configuration
, --flags-file
, --flatten
, --format
, --help
, --impersonate-service-account
, --log-http
, --project
, --quiet
, --trace-token
, --user-output-enabled
, --verbosity
.
Run $ gcloud help
for details.
gcloud compute packet-mirrorings create
gcloud alpha compute packet-mirrorings create
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-07 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-07 UTC."],[],[]]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4