pub struct ConsulTransparentProxy {
pub outbound_port: Option<u16>,
pub exclude_inbound_ports: Option<Vec<String>>,
pub exclude_outbound_ports: Option<Vec<u16>>,
pub exclude_outbound_cid_rs: Option<Vec<String>>,
pub exclude_ui_ds: Option<Vec<String>>,
pub no_dns: Option<bool>,
pub uid: Option<String>,
}
Expand description
ConsulTransparentProxy is used to configure the Envoy sidecar for “transparent proxying”, which creates IP tables rules inside the network namespace to ensure traffic flows thru the Envoy proxy
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§outbound_port: Option<u16>
OutboundPort is the Envoy proxy’s outbound listener port. Inbound TCP traffic hitting the PROXY_IN_REDIRECT chain will be redirected here. Defaults to 15001.
exclude_inbound_ports: Option<Vec<String>>
ExcludeInboundPorts is an additional set of ports will be excluded from redirection to the Envoy proxy. Can be Port.Label or Port.Value. This set will be added to the ports automatically excluded for the Expose.Port and Check.Expose fields.
exclude_outbound_ports: Option<Vec<u16>>
ExcludeOutboundPorts is a set of outbound ports that will not be redirected to the Envoy proxy, specified as port numbers.
exclude_outbound_cid_rs: Option<Vec<String>>
ExcludeOutboundCIDRs is a set of outbound CIDR blocks that will not be redirected to the Envoy proxy.
exclude_ui_ds: Option<Vec<String>>
ExcludeUIDs is a set of user IDs whose network traffic will not be redirected through the Envoy proxy.
no_dns: Option<bool>
NoDNS disables redirection of DNS traffic to Consul DNS. By default NoDNS is false and transparent proxy will direct DNS traffic to Consul DNS if available on the client.
uid: Option<String>
UID of the Envoy proxy. Defaults to the default Envoy proxy container image user.
Implementations§
Source§impl ConsulTransparentProxy
impl ConsulTransparentProxy
pub fn builder() -> ConsulTransparentProxyBuilder
Trait Implementations§
Source§impl Clone for ConsulTransparentProxy
impl Clone for ConsulTransparentProxy
Source§fn clone(&self) -> ConsulTransparentProxy
fn clone(&self) -> ConsulTransparentProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more