public sealed class PacketMirroringFilter : IMessage<PacketMirroringFilter>, IEquatable<PacketMirroringFilter>, IDeepCloneable<PacketMirroringFilter>, IBufferMessage, IMessage
One or more IPv4 or IPv6 CIDR ranges that apply as filters on the source (ingress) or destination (egress) IP in the IP header. If no ranges are specified, all IPv4 traffic that matches the specified IPProtocols is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored. To mirror all IPv4 and IPv6 traffic, use "0.0.0.0/0,::/0".
Protocols that apply as filter on mirrored traffic. If no protocols are specified, all traffic that matches the specified CIDR ranges is mirrored. If neither cidrRanges nor IPProtocols is specified, all IPv4 traffic is mirrored.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis page details the \u003ccode\u003ePacketMirroringFilter\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, specifically version 3.2.0, with links to various other versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ePacketMirroringFilter\u003c/code\u003e class is used to define filters for mirroring network traffic, implementing interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt allows configuration of filters for source or destination IP ranges (\u003ccode\u003eCidrRanges\u003c/code\u003e) and specific protocols (\u003ccode\u003eIPProtocols\u003c/code\u003e) to determine which traffic should be mirrored.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDirection\u003c/code\u003e property can be set to \u003ccode\u003eINGRESS\u003c/code\u003e, \u003ccode\u003eEGRESS\u003c/code\u003e, or \u003ccode\u003eBOTH\u003c/code\u003e to control the direction of traffic being mirrored, defaulting to \u003ccode\u003eBOTH\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class also has a constructor for new instances, and one for copying other packet mirroring filter instances.\u003c/p\u003e\n"]]],[],null,[]]