mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 16:27:33 -10:00
A group's links are links in each member's state, marked as the group's (a sixth field, ,group), so the link session, the proxy's list and every connection check treat them as any link. Membership is each member's own state (group, group_as), so a VM made again is in none. - internal/vm/groups.go: Groups (Show, Join, Leave), groupLinks (pure: the user's links kept and taking precedence, a link per published port of each other member, one address per member kept across changes), sync/syncVM/change (records, names what each member gains and loses, applies to running members), clashes warned. - All or none: join refused by network policy (group_policy_on/off); devvm network on/off refused for a member (group_policy_mixed). - One group at a time (group_other); names unique in a group (group_name_taken, group_name_host); a member whose hostname is another's name gets no links to it (group_link_name_host). - CheckLink refuses a group's link once the two aren't in one group (ungrouped); leave removes the leaver's own group links first; join again works every member's links out again; link rm refuses a group's link that still applies (link_from_group). - Publish/unpublish, link add/rm and devvm rm reach the group's links. - Docs: using/links.md Groups, the Commands page, safety/network.md, internals/ports.md, the design note's Groups section and threat check; the CLI reference. - Tests: groups_test.go, testdata/script/group.txtar, JSON shape; e2e: three VMs in a group and the all-or-none refusals in the link section on every backend. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1.5 KiB
1.5 KiB
title, weight
| title | weight |
|---|---|
| devvm network log | 30 |
Show what this folder's VM connected to and what its network policy blocked
Synopsis
Show the network log of this folder's VM, oldest first: with network policy, one line per connection or request its proxy allowed or blocked, and with or without it, one line per connection to one of its links and each that devvm refused. --blocked lists the blocks instead, one row per host and port, with the devvm network allow command that allows each.
devvm network log [flags]
Examples
devvm network log # show the last 50 connections and requests
devvm network log --follow # keep showing new ones until Ctrl+C
devvm network log --blocked # list the blocks, with the command that allows each
Options
--blocked list the blocks by host and port, with the command that allows each
--follow keep showing new ones as they happen, until interrupted
-h, --help help for log
--json print it as one JSON object, for scripts
-n, --lines N show the last N connections and requests (default 50)
Options inherited from parent commands
--no-input never ask, and fail where devvm would ask, naming the flag that answers it
-v, --verbose show the output of the commands devvm runs instead of a status line
Docs
The docs page for devvm network log explains it in full.
See also
- devvm network: Show or change the network policy of this folder's VM