pub struct NetworkConfig {
pub enabled: bool,
pub interface: InterfaceOverrides,
pub ports: Vec<PublishedPort>,
pub policy: NetworkPolicy,
pub dns: DnsConfig,
pub tls: TlsConfig,
pub secrets: SecretsConfig,
pub max_connections: Option<usize>,
pub trust_host_cas: bool,
}Expand description
Complete network configuration for a sandbox.
Narrowed for the smoltcp in-process engine. Gateway, prefix length, and other host-backend details are engine internals derived from the sandbox slot — the user only specifies what matters: interface overrides, ports, policy, DNS, TLS, and connection limits.
Fields§
§enabled: boolWhether networking is enabled for this sandbox.
interface: InterfaceOverridesGuest interface overrides. Unset fields derived from sandbox slot.
ports: Vec<PublishedPort>Host → guest port mappings.
policy: NetworkPolicyEgress/ingress policy rules.
dns: DnsConfigDNS interception and filtering settings.
tls: TlsConfigTLS interception settings.
secrets: SecretsConfigSecret injection settings.
max_connections: Option<usize>Max concurrent guest connections. Default: 256.
trust_host_cas: boolShip the host’s trusted root CAs into the guest at boot so outbound TLS works behind corporate MITM proxies (Cloudflare Warp Zero Trust, Zscaler, Netskope, etc.) whose gateway CA is installed on the host but not shipped in the Mozilla root bundle the guest OS uses. Opt-in: host trust is not copied into the guest unless this is explicitly enabled. Default: false.
Trait Implementations§
Source§impl Clone for NetworkConfig
impl Clone for NetworkConfig
Source§fn clone(&self) -> NetworkConfig
fn clone(&self) -> NetworkConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more