@ -65,14 +65,28 @@ message FilterChainMatch {
repeated string sni_domains = 1 ;
/ / If non - empty , an IP address and prefix length to match addresses when the
/ / listener is bound to 0.0 .0 .0 / : : .
string address_prefix = 2 ;
google.protobuf.UInt32Value prefix_len = 3 ;
/ / listener is bound to 0.0 .0 .0 / : : or when use_original_dst is specified.
message CidrRange {
string address_prefix = 1 ;
google.protobuf.UInt32Value prefix_len = 2 ;
}
repeated CidrRange prefix_ranges = 3 ;
/ / If non - empty , an IP address and suffix length to match addresses when the
/ / listener is bound to 0.0 .0 .0 / : : .
/ / listener is bound to 0.0 .0 .0 / : : or when use_original_dst is specified .
string address_suffix = 4 ;
google.protobuf.UInt32Value suffix_len = 5 ;
/ / The criteria is satisfied if the source IP address of the downstream
/ / connection is contained in at least one of the specified subnets. If the
/ / parameter is not specified or the list is empty , the source IP address is
/ / ignored.
repeated CidrRange source_prefix_ranges = 6 ;
/ / The criteria is satisfied if the source port of the downstream connection
/ / is contained in at least one of the specified ports. If the parameter is
/ / not specified , the source port is ignored.
repeated google.protobuf.UInt32Value source_ports = 7 ;
}
/ / Grouping of FilterChainMatch criteria , DownstreamTlsContext , the actual filter chain
@ -116,26 +130,16 @@ message Listener {
/ / select the FilterChain from step 2 that is used.
repeated FilterChain filter_chains = 2 ;
/ / Whether the listener should not bind to the port. A listener that doesn ’ t bind
/ / can only receive connections redirected from other listeners that set
/ / use_origin_dst parameter to true . Default is true .
google.protobuf.BoolValue bind_to_port = 3 ;
/ / If a connection is redirected using iptables , the port on which the proxy
/ / receives it might be different from the original destination port. When
/ / this flag is set to true , the listener hands off redirected connections to
/ / the listener associated with the original destination port. If there is no
/ / listener associated with the original destination port , the connection is
/ / handled by the listener that receives it. Default is false .
/ / TODO ( htuch ) : Clarify how use_original_dst interacts with listeners that
/ / bind to specific IP addresses , where we want the original destination IP to
/ / be used in the FilterChainMatch but not on bind.
google.protobuf.BoolValue use_original_dst = 4 ;
/ / this flag is set to true , the listener uses the original destination
/ / address and port during FilterChain matching. Default is false .
google.protobuf.BoolValue use_original_dst = 3 ;
/ / Soft limit on size of the listener ’ s new connection read and write buffers.
/ / If unspecified , an implementation defined default is applied ( 1 MiB ) .
google.protobuf.UInt32Value per_connection_buffer_limit_bytes = 5 ;
google.protobuf.UInt32Value per_connection_buffer_limit_bytes = 4 ;
/ / See base.Metadata description.
Metadata metadata = 6 ;
Metadata metadata = 5 ;
}