pub struct TunnelConfig {
pub chain: ChainConfig,
pub dns_map: DnsMap,
pub tun_ip: Ipv4Addr,
pub prefix_len: u8,
pub dns_ip: Option<Ipv4Addr>,
}Expand description
Configuration for ProxyChainTunnel.
Fields§
§chain: ChainConfigProxy chain setup.
dns_map: DnsMapBidirectional map used to resolve fake IPs back to hostnames.
tun_ip: Ipv4AddrIP address to assign to the smoltcp interface (must match the namespace TUN IP).
prefix_len: u8Subnet prefix length for tun_ip.
dns_ip: Option<Ipv4Addr>If set, UDP packets to this IP on port 53 are intercepted and handled as
DNS A queries: the response assigns a fake IP from the dns_map.
Trait Implementations§
Source§impl Clone for TunnelConfig
impl Clone for TunnelConfig
Source§fn clone(&self) -> TunnelConfig
fn clone(&self) -> TunnelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for TunnelConfig
impl RefUnwindSafe for TunnelConfig
impl Send for TunnelConfig
impl Sync for TunnelConfig
impl Unpin for TunnelConfig
impl UnsafeUnpin for TunnelConfig
impl UnwindSafe for TunnelConfig
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
Mutably borrows from an owned value. Read more