pub struct NetConfig {
pub enabled: bool,
pub allow_lan: bool,
pub allow_hosts: Vec<String>,
pub port_forwards: Vec<PortForward>,
pub vmi_tls: bool,
pub tls_keylog_file: Option<Arc<Mutex<File>>>,
pub mitm_tls: bool,
pub mitm_insecure_upstream: bool,
}Expand description
Egress network configuration for the guest VM (air-gapped by default).
Fields§
§enabled: bool§allow_lan: boolAllow connections to private/LAN/loopback IPv4 ranges (disabled by default for SSRF/homelab safety).
allow_hosts: Vec<String>Optional domain allowlist (e.g. ["alpinelinux.org", "deb.debian.org"]).
Matches exact domain or subdomains; when non-empty, raw-IP connections are blocked unless
resolved via an allowed DNS query.
port_forwards: Vec<PortForward>Optional inbound host-to-guest TCP port forwards (QEMU SLiRP hostfwd style).
vmi_tls: boolMethod 1: Zero-touch host-side VMI SharedMemory TLS key extraction & HTTPS plaintext auditing.
tls_keylog_file: Option<Arc<Mutex<File>>>Optional pre-opened host file where Method 1 appends Wireshark SSLKEYLOGFILE entries.
mitm_tls: boolMethod 2: Opt-in transparent host TLS MITM proxy using an ephemeral per-VM Root CA installed into the disposable guest trust store.
mitm_insecure_upstream: boolSkip upstream server certificate verification in --mitm-tls mode (for local self-signed
forensic lab servers; defaults to false).
Trait Implementations§
Auto Trait Implementations§
impl Forget for NetConfig
impl Freeze for NetConfigwhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<PortForward>: Freeze,
*const ArcInner<Mutex<File>> is !null: Freeze,
PhantomData<ArcInner<Mutex<File>>>: Freeze,
impl Move for NetConfig
impl RefUnwindSafe for NetConfig
impl Send for NetConfig
impl Sync for NetConfig
impl Unpin for NetConfig
impl UnsafeUnpin for NetConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<PortForward>: UnsafeUnpin,
*const ArcInner<Mutex<File>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<File>>>: UnsafeUnpin,
impl UnwindSafe for NetConfig
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more