Sandbox networking
Sandbox networking gives each guest a private virtual network while the host controls how traffic reaches real services. It connects guest traffic to TCP, UDP, ICMP, DNS, TLS interception, published host ports, outbound proxy paths, and secret-aware proxy services without giving the guest direct access to host sockets.
Network boundary
The host network stack acts as the guest's virtual gateway. The runtime gives the guest an interface, address, route, and DNS address. The stack accepts guest frames and returns guest-visible frames through the virtual machine network boundary. The guest can use host.microsandbox.internal to reach host-side services.
Each sandbox gets its network identity from its assigned slot. The stack derives guest and gateway addresses from that slot and reports a typed startup error when an address pool cannot fit the slot. IPv4 and IPv6 can be active independently. A published port can activate the family that it needs when no host route or explicit guest address activates it, so published TCP and UDP services can work without an external host route.
Network startup can wait behind a one-shot activation gate. Checkpoint restore uses this gate to keep traffic and published listeners closed until guest activation completes. A restored gateway identity does not restore the old network's sockets, queues, policy, or protocol state.
This diagram shows the main boundary and the host-side paths selected after traffic enters the stack.
flowchart LR
G[Guest processes] --> E[Guest Ethernet interface]
E --> V[Virtual machine network boundary]
V --> S[Host network stack]
S --> T[TCP proxy]
S --> U[UDP relay]
S --> I[ICMP echo handling]
S --> D[DNS forwarder]
S --> P[Published port bridge]
T --> X[Direct route or outbound proxy]
U --> X
X --> N[Real network or host service]
I --> N
D --> R[Configured or host DNS resolver]
P --> G
References: crates/…/network.rs• L47-79 crates/…/network.rs• L258-337 crates/…/network.rs• L419-435 crates/…/shared.rs• L41-107 crates/…/lib.rs• L32-37
Policy boundary
Network policy is the rule boundary between guest traffic and host services. It sets ingress and egress defaults and can narrow access by destination name, address group, protocol, or port. Rules are ordered and first-match-wins for their direction. The runtime evaluates the relevant policy before it opens a host path or accepts a published connection.
DNS is also an egress decision. A policy can allow or deny queries by name or can allow the sandbox gateway on the DNS transport. A guest-selected resolver must pass the normal egress policy before the forwarder uses it. See Network policy and DNS routing for rule order, destination groups, DNS bindings, and name-based decisions.
Destination groups are disjoint. The host group takes priority for sandbox gateways and host interface addresses. Host on-link networks are treated as private, while metadata takes priority over the broader link-local range. IPv4-mapped IPv6 and configured NAT64 destinations use their embedded IPv4 address for policy matching. Unspecified addresses match no group.
Domain rules use DNS results and TLS identity when those signals are available. The stack keeps address-to-hostname bindings by address family and TTL so rotating A and AAAA answers remain usable for later domain checks. A host-owned policy floor is checked in addition to tenant policy in multi-tenant deployments.
References: crates/…/types.rs• L51-75 crates/…/types.rs• L242-277 crates/…/types.rs• L789-839 crates/…/destination.rs• L16-60 crates/…/destination.rs• L63-163 crates/…/name_policy.rs• L61-185 crates/…/shared.rs• L293-369 crates/…/network.rs• L437-443
Traffic paths
The stack classifies traffic before it selects host I/O. Normal Ethernet, ARP, NDP, ICMP, and established TCP packets stay in the virtual IP stack. New TCP, non-DNS UDP, DNS, and selected ICMP echo traffic use dedicated paths.
| Guest traffic | Host-side purpose | Guest-visible result |
|---|---|---|
| New TCP connection | Apply egress policy and create a host stream | A TCP connection through a direct or proxied route |
| Non-DNS UDP | Use a host UDP socket or a SOCKS5 association | Replies return as guest frames |
| UDP or TCP DNS | Apply DNS filtering and choose an upstream | A DNS response or clear DNS error |
| ICMP echo request | Reply locally or probe an external host | An echo reply when the host supports the path |
| Host connection to a published port | Apply ingress policy and connect into the guest | The guest service receives a stream or datagram |
| TLS on an intercepted port | Inspect identity and optionally decrypt the stream | A certificate signed by the sandbox CA |
The poll loop coordinates these paths. It drains guest frames, completes host dials, flushes protocol replies, relays proxy data, accepts published connections, and wakes for frames, proxy events, or timers. It reassembles supported UDP fragments before policy and relay handling. It drops unsupported fragmented IPv6 traffic when it cannot safely preserve a transport identity.
Alternative DNS protocols are refused or dropped so a guest resolver can fall back to plain DNS. DNS over TLS uses the common forwarder only when TLS interception is enabled. UDP to an intercepted TLS port can also be blocked to prevent an encrypted protocol from bypassing the interception path.
References: crates/…/poll.rs• L68-98 crates/…/poll.rs• L204-235 crates/…/poll.rs• L346-370 crates/…/poll.rs• L372-445 crates/…/poll.rs• L462-531 crates/…/poll.rs• L562-716 crates/…/poll.rs• L820-873
TCP egress
TCP egress gives each guest connection a host-side stream while preserving the guest destination for policy decisions. A new connection can be rejected, held for policy inspection, or allowed only after the host connection succeeds.
Direct policy paths hold the guest handshake until a cancellable host dial succeeds. A failed dial aborts the guest connection instead of reporting a false success. A guest reset cancels a pending dial. Host-local gateway destinations use loopback and can try the other loopback family when the first family does not complete.
Hostname policy can complete the guest handshake while the proxy reads a TLS SNI or another first-flight identity. The proxy checks that identity before it opens an upstream connection when the policy needs it. Secret inspection is completed after the upstream socket opens, which lets server-first protocols relay their banners without waiting for a client request.
Relay shutdown preserves half-close behavior and drains queued data before a clean close. A stalled drain is bounded and ends with a reset. A default-denied HTTP or intercepted HTTPS request can receive a readable 403 Forbidden when the configured denial response applies. Explicit denies and non-HTTP traffic close without an upstream connection.
References: crates/…/poll.rs• L372-448 crates/…/poll.rs• L534-696 crates/…/connection.rs• L46-183 crates/…/pending.rs• L18-67 crates/…/proxy.rs• L217-327 crates/…/proxy.rs• L354-602 crates/…/proxy.rs• L678-773 crates/…/deny.rs• L23-114 crates/…/tcp_connect_tests.rs• L25-65 crates/…/tcp_connect_tests.rs• L212-360
Outbound proxy routing
Outbound proxy routing sends external sandbox traffic through a host-side proxy when the network configuration requests it. The stack keeps the guest destination for policy checks while the proxy carries the host connection, so policy does not depend on the proxy's address.
HTTP CONNECT and SOCKS4 support TCP connections. SOCKS5 supports TCP and UDP, including username/password authentication. Host-local connections rewritten to loopback bypass the outbound proxy. This keeps host services separate from external egress. HTTP CONNECT and SOCKS4 do not carry non-DNS UDP.
SOCKS5 UDP uses one association per guest flow and accepts replies only for the selected destination. If the proxy returns a domain-form relay address, the host resolves it through the internal DNS forwarder. This infrastructure lookup does not use guest DNS policy, rebind protection, active guest families, or the guest's resolved-hostname cache.
Proxy credentials remain host-owned. Durable configuration stores the credential source and username without the password value. Launch resolution supplies the password to the runtime, which validates the resolved credentials before the proxy is used. HTTP CONNECT response headers also have size and time limits, and only a valid final success response opens the tunnel.
References: crates/…/types.rs• L132-137 crates/…/resolver.rs• L85-132 crates/…/types.rs• L18-80 crates/…/http_connect.rs• L37-50 crates/…/http_connect.rs• L146-189 crates/…/socks.rs• L85-253 crates/…/network.rs• L496-520 crates/…/poll.rs• L534-542 crates/…/forwarder.rs• L278-341 crates/…/upstream.rs• L49-115 crates/…/relay.rs• L318-419
UDP egress
Non-DNS UDP uses a host relay because the virtual IP stack cannot provide the wildcard binding needed for arbitrary guest destination ports. A relay groups packets by guest flow, sends them through a direct host socket or SOCKS5 association, and rebuilds replies as frames addressed to the guest.
The relay keeps guest wire addresses separate from host socket addresses. A gateway destination can map to loopback on the host while replies retain the gateway address expected by the guest. Sessions expire when idle and use bounded queues. Large host replies are fragmented to the guest MTU, or produce an ICMP packet-too-big signal when the path cannot carry them.
References: crates/…/relay.rs• L86-104 crates/…/relay.rs• L189-270 crates/…/relay.rs• L318-419 crates/…/relay.rs• L455-703 crates/…/poll.rs• L462-519 crates/…/poll.rs• L818-871
ICMP reachability
ICMP support focuses on echo requests. A request for the sandbox gateway receives a local reply. An external request uses a host ICMP echo socket and returns as a synthesized guest frame.
Only echo traffic is relayed externally. Other ICMP traffic is not a general host tunnel. IPv4 and IPv6 host support are checked separately, so an unavailable capability disables only the affected external path. ICMP rules are egress-only because published ingress has no inbound ICMP path.
References: crates/…/poll.rs• L349-370 crates/…/poll.rs• L965-1013 crates/…/relay.rs• L59-72 crates/…/relay.rs• L110-184 crates/…/types.rs• L215-230
DNS service
DNS is a host-controlled service exposed at the guest gateway. UDP/53, TCP/53, and DNS-over-TLS on TCP/853 use one forwarder when its TLS service is configured. This keeps query policy, name filtering, rebind protection, upstream selection, and response handling consistent across transports.
When a query targets a gateway address, the forwarder uses configured upstreams in order. If the list is empty, it uses the host resolver. When a query targets another resolver address, it forwards directly only after that resolver passes the network policy. A denied query or resolver returns a synthetic NXDOMAIN; an unreachable configured upstream set returns SERVFAIL. The forwarder also synthesizes the gateway host alias and returns no A or AAAA records for an inactive guest address family.
Configured UDP, TCP, and DoT upstreams use the configured query timeout. DoT validates the resolver name and certificate against host trust. On Windows, the system-resolver compatibility path converts asynchronous native results into the same guest DNS response form and fails closed for unsupported or malformed records.
Rebind protection applies to the full gateway response. It checks answer names, aliases, reverse names, service records, address hints, and other supported name-bearing records. It can remove unsafe authority or additional record sets only when the remaining answer is complete. Compressed names in legacy record types are expanded before policy inspection so detached wire pointers cannot bypass the same checks.
Successful A and AAAA answers create family-specific bindings with their response lifetime. The bindings connect later IP flows to domain rules and can be revalidated when a connection presents SNI after the original DNS lifetime. The cache has bounded per-host and per-sandbox capacity. Response authorization uses current binding and policy state after upstream work completes, so a stale allow does not survive a change. Proxy endpoint lookups use the configured resolver as host infrastructure and do not inherit guest DNS policy or rebind checks.
Alternative DNS transports are refused or dropped. UDP answers larger than the guest buffer are returned with TC=1, so the guest retries over TCP through the same forwarder. See Network policy and DNS routing for routing and policy behavior.
References: crates/…/poll.rs• L372-405 crates/…/poll.rs• L619-668 crates/…/client.rs• L42-186 crates/…/forwarder.rs• L183-250 crates/…/forwarder.rs• L361-517 crates/…/forwarder.rs• L519-607 crates/…/name_policy.rs• L105-185 crates/…/response_policy.rs• L22-79 crates/…/wire_names.rs• L15-92 crates/…/security_tests.rs• L136-375 crates/…/compatibility.rs• L81-182 crates/…/shared.rs• L293-369
TLS interception
TLS interception provides a controlled middle point for selected TCP ports. The host reads the guest ClientHello, checks its server name against policy, and then either bypasses or intercepts TLS. Bypass relays the encrypted stream. Interception presents a per-domain certificate signed by the sandbox CA and opens a separate TLS connection to the real server.
For HTTP CONNECT, the ClientHello server name must match the CONNECT authority. This binds the declared tunnel destination to the TLS identity. Without SNI, policy can use an unexpired DNS binding, but the certificate and secret identity stay tied to the guest destination. The guest must trust the interception CA. The upstream side can use host trust settings or a host-scoped trust setting and follows the selected direct or outbound-proxy path. DNS-over-TLS is terminated through this path so the host can inspect the DNS messages.
The interception CA is generated or loaded on the host. A loaded certificate and private key must form one matching signing identity, while only the public certificate chain is sent to the guest. Per-domain certificates are refreshed before expiry and shared through a bounded cache.
An intercepted HTTPS denial can return an HTTP 403 only for a complete HTTP/1.x request when denial responses are enabled. Non-HTTP, incomplete, malformed, or timed-out traffic closes without injecting plaintext into the TLS stream. TLS and secret settings are snapshotted per connection, so later updates affect new connections.
References: crates/…/poll.rs• L589-667 crates/…/proxy.rs• L678-825 crates/…/ca.rs• L12-99 crates/…/proxy.rs• L140-279 crates/…/proxy.rs• L287-369 crates/…/proxy.rs• L474-627 crates/…/state.rs• L25-224 crates/…/sni.rs• L20-130 crates/…/deny.rs• L73-114
Port publishing
Port publishing lets a host peer reach a service inside the guest. The runtime claims each configured host listener before network start, so an unavailable host address or port fails startup and the poll thread does not start. The listener then checks ingress policy and bridges allowed traffic to the guest port.
TCP publishing relays a byte stream with independent directions and bounded close behavior. UDP publishing keeps a short-lived peer mapping so host datagrams appear to come from a stable guest endpoint and guest replies return to the correct host peer. A published listener binds to loopback by default. A wildcard or non-loopback bind exposes the service to more host interfaces.
The host TCP accept queue and the publisher's active inbound connection cap are separate controls. A bounded handoff queue can hold allowed clients while the poll loop creates guest connections. A full queue, an expired wait, or an active-cap rejection resets the host peer. Published TCP and UDP ports can work through the virtual Ethernet boundary even when the host has no external route, because the required guest address family is activated for the publication.
References: crates/…/network.rs• L288-337 crates/…/network.rs• L454-525 crates/…/mod.rs• L1-9 crates/…/publisher.rs• L80-119 crates/…/publisher.rs• L242-321 crates/…/publisher.rs• L325-511 crates/…/publisher.rs• L917-1037 crates/…/published_ports_tests.rs• L23-97 crates/…/published_ports_tests.rs• L99-261
Secret-aware proxying
Secret-aware proxying keeps real secret values on the host while allowing selected guest requests to use placeholders. A host proxy substitutes the value only after it proves that the destination host and request scope are allowed.
Secret entries require an environment name, one allowed host pattern, and one value source. A source reference is stored without plaintext and resolved at sandbox launch. The proxy can inspect intercepted TLS plaintext and explicitly permitted plain HTTP. It understands common HTTP/1.1 and HTTP/2 request locations. A placeholder sent to a disallowed or unproven host is blocked, logged, or can terminate the sandbox according to the rule.
Host identity is connection-scoped. Intercepted TLS uses verified SNI with the original guest destination. HTTP CONNECT binds identity to the CONNECT authority and matching SNI. Plain HTTP proves its host value and applies egress policy to the HTTP authority. Plain HTTP without a usable host cannot receive host-scoped secrets. Existing connections keep their starting snapshot. Rotation and host-rule changes apply to new connections.
This diagram shows how a guest placeholder becomes a host-held value only after connection and request checks succeed.
flowchart LR
C[Durable network configuration] --> R[Host launch resolution]
R --> S[Host-side secret snapshot]
S --> H[Connection-scoped secret handler]
G[Guest request with placeholder] --> H
H --> I{Host identity and request scope allowed?}
I -->|yes| V[Substitute host-held value]
I -->|no| A[Block, log, or terminate]
V --> U[Upstream service]
References: crates/…/types.rs• L88-90 crates/…/resolver.rs• L85-132 crates/…/network.rs• L569-624 crates/…/poll.rs• L668-696 crates/…/handler.rs• L45-59 crates/…/handler.rs• L519-737 crates/…/handler.rs• L948-1138 crates/…/hpack.rs• L1-93
Runtime controls
The network stack bounds work at shared boundaries. Guest and host frames use bounded queues. TCP, UDP, and published inbound flows have limits. Optional rate limits cap bandwidth or packet rate. The runtime exposes byte, rejection, and eviction counters at the virtual network boundary. It can terminate a sandbox after a fatal security decision.
The public network configuration enables networking, sets interface overrides, publishes TCP or UDP ports, selects policy and DNS behavior, enables TLS interception, chooses an outbound proxy, sets connection limits, configures NAT64 policy prefixes, customizes denial responses, and controls rate limits. Unset interface values remain derived from the sandbox slot. Host root CAs are copied into the guest only when explicitly enabled.
The configuration boundary separates durable settings from launch-only values. Source-backed secrets and proxy authentication material are resolved for the current launch. The guest receives placeholders and bootstrap network data rather than host-held secret values. In a multi-tenant profile, host-owned safety floors remove unsafe interface, port, nameserver, outbound-proxy, and host-CA settings. They also enforce rebind protection and default TCP and UDP limits. Tenant policy remains a separate required check.
References: crates/…/shared.rs• L27-40 crates/…/shared.rs• L45-107 crates/…/shared.rs• L220-291 crates/…/shared.rs• L293-379 crates/…/network.rs• L258-416 crates/…/network.rs• L727-783 crates/…/types.rs• L52-150 crates/…/resolver.rs• L17-132 crates/…/lib.rs• L17-27
Change checklist
When these files or sections are changed, remember to consider these:
- When guest address, gateway, slot derivation, or address-family selection changes, keep guest bootstrap data, DNS alias answers, routes, policy matching, and published-listener startup aligned.
- When transport or DNS port classification changes, keep TCP, UDP, DNS-over-TLS, alternative-DNS refusal, QUIC blocking, and the DNS forwarder aligned.
- When destination classification changes, keep group precedence, host interface and on-link data, IPv4-mapped addresses, NAT64 projections, unspecified handling, and the child policy page aligned.
- When resolved-hostname caching changes, keep A/AAAA family isolation, TTL expiry, per-hostname and per-sandbox bounds, address normalization, revalidation, and domain policy checks aligned.
- When DNS response filtering changes, keep query denial, reverse and local-name checks, CNAME/DNAME completion, ancillary RRset removal, DNSSEC flags, wire-name expansion, Windows resolver conversion, and all three guest DNS transports aligned.
- When DNS upstream client or host-resolver behavior changes, keep transport-specific timeouts, DoT name and certificate checks, native resolver status mapping, cancellation, and
SERVFAILbehavior aligned. - When policy changes, keep egress and ingress evaluation, DNS query evaluation, ICMP's egress-only contract, deferred hostname decisions, multi-tenant policy intersection, and the child policy page aligned.
- When TLS interception changes, keep ClientHello buffering, CONNECT authority and SNI matching, guest CA installation, CA key matching, certificate refresh, no-SNI cache behavior, bypass rules, upstream verification, DNS-over-TLS, and denial responses aligned.
- When outbound proxy routing changes, keep guest-destination policy checks, host-local bypass, HTTP CONNECT/SOCKS4/SOCKS5 transport support, credential resolution, SOCKS5 UDP relay-domain resolution, response validation, and TLS dialing aligned.
- When TCP handshake or relay shutdown changes, keep pending-dial cancellation, first-flight classification, server-first relay behavior, half-close behavior, queued-data draining, secret substitution, and reset-versus-clean-close results aligned.
- When published-port mapping changes, review host bind exposure, startup binding, ingress policy, guest address-family selection, accept queues, waiting admission, active inbound limits, UDP peer mappings, and both reply paths.
- When secret settings change, keep guest placeholders, host-side values, host identity checks, request scopes, HTTP authority checks, passthrough rules, violation actions, live-update behavior, and HTTP/2 header validation aligned.
- When source-backed values change, keep durable source references, launch-time resolution, redaction, credential matching, and per-connection snapshots aligned.
- When deployment-profile controls change, keep the platform safety floor separate from tenant policy and align the overridden interface, port, DNS, proxy, host-CA, rebind, and connection-limit settings.
- When network configuration fields or serialized names change, keep builder defaults, validation, wire compatibility, deployment floors, runtime resolution, and legacy
max_connectionscompatibility aligned.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| The assigned slot does not fit the configured address pool | Network creation returns a typed capacity error | Use a pool that fits the slot or choose a valid slot |
A configured NAT64 prefix is not IPv6 /96 | Network creation fails | Configure only valid /96 prefixes |
| All configured DNS upstreams are unusable | Gateway DNS returns SERVFAIL | Keep an upstream reachable or use the host resolver |
| A configured DoT resolver has an untrusted certificate or mismatched name | The upstream DNS connection fails | Use a resolver address and SNI covered by host trust |
| A Windows system DNS query times out or returns malformed or unsupported records | The guest query fails instead of receiving unsafe data | Keep the host resolver responsive and return supported DNS records |
| A DNS query or explicitly selected resolver is denied by policy | The forwarder returns NXDOMAIN without contacting that resolver | Allow the DNS transport and intended resolver explicitly |
| A DNS answer exposes a private, reserved, or disallowed name or address | The answer is rejected, or unsafe ancillary records are removed only when the answer remains complete | Add a deliberate address and name policy allow only when intended |
| A legacy DNS record contains an invalid or detached compressed name | The response is rejected rather than passed through for inspection | Use valid wire names and complete records |
| The guest does not trust the sandbox interception CA | Intercepted TLS and DNS-over-TLS handshakes fail | Install the guest CA before using intercepted paths |
| The configured interception CA certificate and private key do not match | Network TLS state fails during startup | Provide a matching CA pair |
| CONNECT authority and TLS SNI do not match | The tunnel is denied | Use one host identity in both values |
| HTTP CONNECT returns a malformed, oversized, incomplete, or stalled response | The TCP dial does not become a tunnel | Return a valid final HTTP/1.x response within the protocol limits |
| An outbound proxy is unreachable or launch credentials do not match its durable configuration | The affected external flow fails | Keep the proxy reachable and resolve matching credentials at launch |
| HTTP CONNECT or SOCKS4 is selected for non-DNS UDP | The datagram is dropped | Use SOCKS5 for proxied UDP or use direct UDP |
| A policy-approved host dial fails before the guest handshake completes | The guest sees a reset instead of a false success | Keep the destination or proxy reachable |
| A configured published host address or port is already in use | Network startup fails before the poll thread starts | Free the host bind or choose another published address and port |
| A published listener binds to a wildcard or non-loopback address | More host interfaces can reach the guest service | Use loopback unless wider exposure is required |
| A published TCP accept queue, waiting queue, or inbound connection limit is reached | New host peers can fail or receive a reset | Set queue and active limits for the expected burst and service load |
| A waiting published TCP client exceeds its admission time | The host peer is reset without a guest connection | Keep active capacity available or increase the intended limit |
| A frame or proxy queue is full | Frames or datagrams can be dropped | Keep traffic within configured queue and session limits |
| The guest sends unsupported fragmented IPv6 traffic | The stack drops the packet | Keep packets within the path MTU or use supported fragmentation |
| A secret placeholder is sent to a disallowed or unproven host | The request is blocked, logged, or terminates the sandbox | Use an allowed host identity and supported request scope |
| Plain HTTP has no usable host authority for a host-scoped secret | The placeholder is blocked rather than substituted | Send a trusted, policy-approved HTTP authority |
| A source-backed secret or proxy password is missing or empty at launch | Configuration resolution fails before startup | Keep the host source present and non-empty |
| An HTTP/2 header block is structurally incomplete or over-long | The secret-aware connection closes before forwarding | Send complete header blocks within the supported limits |
Key files
| File | Why to read it |
|---|---|
| crates/…/lib.rs | Shows the public model and the optional host engine boundary, including the guest host alias. |
| crates/…/network.rs | Shows how one sandbox network is created, addressed, gated, and connected to runtime controls. |
| crates/…/poll.rs | Shows high-level traffic classification, service order, and transport fallbacks. |
| crates/…/shared.rs | Shows the shared boundary for frames, wakeups, address policy data, hostname bindings, denial responses, and metrics. |
| crates/…/destination.rs | Shows how host, private, metadata, link-local, multicast, loopback, and public destinations are classified. |
| crates/…/types.rs | Defines ordered policy decisions for egress, ingress, DNS, and hostname-aware flows. |
| crates/…/forwarder.rs | Shows DNS query routing, upstream selection, caching, revalidation, and proxy endpoint lookup. |
| crates/…/client.rs | Shows how configured DNS upstream transports use timeout and trust rules. |
| crates/…/name_policy.rs | Shows how DNS names and reverse ranges prove access to local or reserved network data. |
| crates/…/response_policy.rs | Shows how complete DNS answers and dependent record sets are filtered safely. |
| crates/…/wire_names.rs | Shows how compressed names in legacy records become safe to inspect and re-encode. |
| crates/…/security_tests.rs | Verifies that gateway DNS does not leak local network information across UDP, TCP, or DoT. |
| crates/…/compatibility.rs | Shows how the Windows system resolver becomes a bounded guest DNS response. |
| crates/…/http_connect.rs | Shows HTTP CONNECT tunnel setup, authentication, response checks, and limits. |
| crates/…/socks.rs | Shows SOCKS4 and SOCKS5 TCP routing, authentication, and SOCKS5 UDP associations. |
| crates/…/proxy.rs | Shows first-flight policy checks, HTTP CONNECT tunnels, server-first relay behavior, and request relay. |
| crates/…/ca.rs | Shows interception CA generation, loading, key matching, and guest-safe certificate output. |
| crates/…/proxy.rs | Shows SNI-based TLS bypass or interception, guest denial responses, and upstream TLS. |
| crates/…/state.rs | Shows CA lifetime, per-domain certificate caching, and upstream trust selection. |
| crates/…/relay.rs | Shows non-DNS UDP sessions and guest-visible reply construction. |
| crates/…/publisher.rs | Shows host-to-guest TCP and UDP publishing, admission controls, and ingress policy. |
| crates/…/published_ports_tests.rs | Verifies published TCP and UDP ports through the virtual Ethernet boundary, including operation without host routes. |
| crates/…/network.rs | Shows how the guest applies host-provided interface, route, DNS, and alias data. |
| crates/…/tls.rs | Shows how the guest installs CA material needed for TLS interception. |