pub struct RedirectConfig {
pub guest_ipv4: Option<Ipv4Addr>,
pub guest_ipv6_prefix: Option<Ipv6Network>,
pub intercepted_ports: Vec<u16>,
pub proxy_port: u16,
pub sandbox_id: u32,
pub ifname: String,
}Expand description
Configuration for kernel-level redirect rules.
Fields§
§guest_ipv4: Option<Ipv4Addr>Guest IPv4 address to match in redirect rules.
guest_ipv6_prefix: Option<Ipv6Network>Guest IPv6 /64 prefix to match in redirect rules. Uses the full prefix (not a single address) to cover SLAAC and privacy extension addresses within the subnet.
intercepted_ports: Vec<u16>TCP ports to intercept (e.g. [443]).
proxy_port: u16Local port of the TLS proxy listener.
sandbox_id: u32Sandbox ID (used for unique table/anchor naming).
ifname: StringHost-side interface name (e.g. "msbtap42").
Auto Trait Implementations§
impl Freeze for RedirectConfig
impl RefUnwindSafe for RedirectConfig
impl Send for RedirectConfig
impl Sync for RedirectConfig
impl Unpin for RedirectConfig
impl UnsafeUnpin for RedirectConfig
impl UnwindSafe for RedirectConfig
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