Binds real network traffic to the policy vocabulary. The gateway classifies each new flow by protocol, destination address and port into a destination identity, traffic class and operation, then calls decide(). First matching binding wins; no match means the flow is denied.

interface ServiceBinding {
    cidrs: readonly string[];
    cls: TrafficClass;
    destinationId: string;
    id: string;
    op: string;
    ports: readonly number[];
    proto: "tcp" | "udp";
}

Properties

cidrs: readonly string[]

IPv4 or IPv6 CIDRs.

destinationId: string
id: string
op: string
ports: readonly number[]

Destination ports. Empty means any port.

proto: "tcp" | "udp"