Expand description
Network layer: Network isolation and configuration
This module manages network namespace isolation and configuration, including bridge setup and port mapping.
§Features
- Network modes: Isolated, bridge, host, or custom
- Interface configuration: IP addresses and gateways
- Port mapping: Container to host port translation
- DNS management: Custom DNS server configuration
- Bandwidth limiting: Optional network rate limiting
§Examples
ⓘ
use sandbox_rs::network::{NetworkConfig, NetworkMode};
let config = NetworkConfig::isolated()
.with_dns_server("8.8.8.8")?;Re-exports§
pub use config::NetworkConfig;pub use config::NetworkInterface;pub use config::NetworkMode;pub use config::NetworkStats;pub use config::PortMapping;
Modules§
- config
- Network configuration for sandbox isolation