From e0640333d0e9eb872a3abf68a9da1685ab570076 Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 02:59:16 +0000 Subject: run-firecracker-vm: --egress defaults to the VM's name A named VM uses the list of the same name unless given another with --egress; without a name, still the list default. A missing list means no egress (with a warning), as before; there's no fallback to default. --- modules/host/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/host/default.nix') diff --git a/modules/host/default.nix b/modules/host/default.nix index c70e505..5e9480e 100644 --- a/modules/host/default.nix +++ b/modules/host/default.nix @@ -24,7 +24,8 @@ # with fc-egress (see fc-egress help) at any time; changes apply to the # next connection. Which list a VM uses is in /run/fc-egress/TAP (one # line, the list's name, writable by the tap's user), which the run script -# writes when it takes the tap (--egress LIST, default "default") and +# writes when it takes the tap (--egress LIST, default: the VM's name +# (--name), or "default") and # empties when the VM exits. No list, or one that doesn't exist, allows # nothing. Likewise /run/fc-egress/TAP.name, the VM's name (--name), so # fc-egress can take names instead of taps; only fc-egress reads it. @@ -167,7 +168,8 @@ ${lib.concatMapStrings (t: " ${t.name}) user=${t.user} ;;\n") taps} echo " fc-egress use VM LIST" echo " fc-egress log [JOURNALCTL-OPTION...]" echo "LIST is a whitelist's name (default: default); a VM uses the one" - echo " given to run-firecracker-vm --egress (default: default)" + echo " given to run-firecracker-vm --egress (default: its --name," + echo " or default)" echo "VM is a running VM's name (run-firecracker-vm --name) or tap;" echo " -v VM means the list it uses" echo "RULE is DOMAIN (HTTPS, with subdomains, not decrypted)" -- cgit v1.3.1