Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PacketMirroringFilter

import type { PacketMirroringFilter } from "https://googleapis.deno.dev/v1/compute:v1.ts";
interface PacketMirroringFilter {
cidrRanges?: string[];
direction?: "BOTH" | "EGRESS" | "INGRESS";
IPProtocols?: string[];
}

§Properties

§
cidrRanges?: string[]
[src]

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".

§
direction?: "BOTH" | "EGRESS" | "INGRESS"
[src]

Direction of traffic to mirror, either INGRESS, EGRESS, or BOTH. The default is BOTH.

§
IPProtocols?: string[]
[src]

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.