3.2 KiB
Isolated network sandbox
./jeannie network-sandbox plan reports the intended guest identities and
host prerequisites. prepare creates the isolated VLAN-aware vmbr9 and
SSD-backed jeannie-sandbox storage after running the sandbox unit checks.
The bridge is transient and the storage definition persists across reboot.
./jeannie network-sandbox provision creates OpenWrt VM 9100 and Alpine ARM64
containers 9110 and 9111 on VLANs 10 and 20. It requires an empty, marked
vmbr9, the expected writable SSD, the sandbox storage definition, available
guest IDs, KVM, and an SSH public key. It verifies downloaded images against
checksums retrieved from the official distribution servers. It never adopts or
overwrites existing guest IDs, and preserves partially created resources on
failure for inspection.
Guests are created stopped and the OpenWrt WAN virtual link is disconnected.
network-sandbox start starts only the dedicated sandbox guests after verifying
their identity, isolation and host routes; stop stops only those guests.
network-sandbox verify checks running guests, the disconnected WAN setting,
live bridge VLAN assignments, client addresses, cross-VLAN ICMP replies, and
TCP connections to temporary listeners in both directions. Each TCP probe
requires a successful connection from the listener's own namespace first. The
listeners are removed when verification finishes. These selected probes do not
prove complete isolation or establish readiness to enable WAN access.
These lifecycle commands are independent of K3s. The cluster runtime guard
checks declared control-plane and worker VM IDs and Pimox cluster VM names;
it does not depend on sandbox guests, bridge, storage, or health. Keep custom
cluster guests declared in the inventory or VM ID overrides so that the guard
recognizes them. The WAN stays disconnected by default.
./jeannie network-sandbox wan-probe runs verification, then temporarily
connects the router WAN to test TCP internet access from each client. Before
connecting, it installs a temporary host-side tc guard on the sandbox WAN
tap, using tc or, if unavailable, dedicated ebtables filter chains. The
bridge fallback also drops frames addressed to the host. The guard blocks
private, link-local and Tailscale IPv4 destination
ranges, permits other IPv4 and ARP, and drops other Ethernet protocols. It
checks that each client can reach 1.1.1.1:443 and cannot reach the hypervisor's
SSH port, for which it first establishes a host-side positive control. These
sampled checks do not prove every service, protocol, or firewall rule works.
The probe requires a supported tc or legacy ebtables bridge filter,
QEMU QMP access and host SSH listening on vmbr0;
it refuses to proceed if it cannot install its guard. A detached watchdog
brings the sandbox WAN tap down after two minutes if the probe is interrupted.
The persistent VM configuration remains disconnected. If cleanup fails, run
./jeannie network-sandbox wan-reset to isolate the tap and remove the owned
guard before retrying. This test does not enable permanent internet access.
The existing cluster bridge, host addresses, and existing VM disks are not
modified by this workflow. Download and disk-import staging files remain under
/data/jeannie/network-sandbox after provisioning.