pub struct TlsConfig {
pub enabled: bool,
pub intercepted_ports: Vec<u16>,
pub bypass: Vec<String>,
pub verify_upstream: bool,
pub ca: CaConfig,
pub cache: CertCacheConfig,
}Expand description
TLS interception configuration.
When enabled is true, msbnet installs kernel-level redirect rules for
intercepted_ports and runs a transparent TLS proxy that terminates guest
connections with per-domain certificates signed by a microsandbox CA.
Fields§
§enabled: boolWhether TLS interception is active.
intercepted_ports: Vec<u16>TCP ports to intercept (default: [443]).
bypass: Vec<String>Domains to bypass (no interception). Supports exact match and
*.suffix wildcard patterns.
verify_upstream: boolWhether to verify upstream server certificates against the host’s system trust store (default: true). Disable only for testing or internal services with self-signed certs.
ca: CaConfigCA certificate configuration.
cache: CertCacheConfigCertificate cache configuration.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TlsConfig
impl<'de> Deserialize<'de> for TlsConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TlsConfig
impl RefUnwindSafe for TlsConfig
impl Send for TlsConfig
impl Sync for TlsConfig
impl Unpin for TlsConfig
impl UnsafeUnpin for TlsConfig
impl UnwindSafe for TlsConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more