mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 21:36:40 -10:00
devvm policy shows the policy files of this folder's VM that have rules, in order, comments left out. devvm policy allow|deny|rm RULE... edit the VM's own file, or with -g/--global the user's file for every VM; the VM's proxy re-reads a changed file, so changes apply at once. - proxy.ValidRule: the rules devvm policy takes (host, *.host, **, an address or CIDR, optional port and !); AllowRule's suggestions are valid (FuzzRequest checks it), and FuzzParseRule checks valid rules parse. - netpolicy: Rule, AddRule, RemoveRule, WriteRules; files rewritten whole through a link; duplicates and rm match in any case, comments aside. - vm: Env.Policy and Env.PolicyChange; net_off_policy for a VM without network policy. - state.VMNames skips <vm>.policy files. - Messages: net_off_policy, no_vm_policy, not_a_rule, rule_added, rule_added_global, rule_present, rule_removed, rule_removed_global, rule_missing, policy_failed. - testdata/script/policy.txtar: allow/deny/rm, -g, IPv6 rules, refused rules, the rules shown per file, a VM without network policy, and a new VM not inheriting rules of one deleted outside devvm. - e2e network: the allow command devvm log --blocked suggests applies at once on the running proxy; rm blocks again. - Docs: network.md (Changing rules), commands.md, CLI reference. Co-Authored-By: Claude Opus 5.5 <[email protected]>