Skip to main content

Crate shuru_proxy

Crate shuru_proxy 

Source

Re-exports§

pub use config::ProxyConfig;

Modules§

config

Structs§

ProxyHandle
Handle to a running proxy. Shuts down on drop.

Functions§

create_socketpair
Create a Unix datagram socketpair for VZFileHandleNetworkDeviceAttachment. Returns (vm_fd, host_fd). The vm_fd goes to VZ, host_fd goes to the proxy.
start
Start the proxy engine. Returns a handle that keeps it running.

Type Aliases§

AllowedIps
Cache of IPs that the proxy is allowed to connect to. Populated by DNS resolution of allowed domains. When the domain allowlist is active, TCP connections to IPs not in this cache are rejected, closing the bypass where a guest connects directly to a hardcoded IP.