diff options
| author | tv <tv@krebsco.de> | 2026-11-17 02:59:16 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-17 02:59:16 +0000 |
| commit | e0640333d0e9eb872a3abf68a9da1685ab570076 (patch) | |
| tree | 21a779ff77bfcea49a7cea148f9a81900bac3847 /modules/host/default.nix | |
| parent | e0b8ef7a5f907baf7362ee34f24c107238590a8f (diff) | |
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.
Diffstat (limited to 'modules/host/default.nix')
| -rw-r--r-- | modules/host/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
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)" |
