mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 06:23:17 -10:00
devvm network prints the VM's network policy as ls shows it (on, off, unenforced); devvm network on|off changes its state, applied when it next starts (net_set_running/net_set_stopped, net_already when unchanged, net_on_old_tokens on turning on). on needs the backend's egress proxy. A running VM turned off stays on its proxy until it next starts (net_off_next_start). Confined now means started with the proxy (Lima reads the recorded network; the fake tracks Start's), so a VM turned on while it ran direct is unenforced and its launch offers the confined restart; net_unenforced* say it wasn't started confined. net_flag_ignored, net_off_log and net_off_policy name devvm network. Docs: network.md "Turning it on or off", commands.md, security.md, contributing.md, CLI reference. Tests: TestNetwork, TestNetworkRequiresEgressProxy, Lima's Confined after a direct start, network.txtar (what it prints), e2e network (off, on while running, off while confined). Co-Authored-By: Claude Opus 5.5 <[email protected]>