ensuring only relevant access is provided

This commit is contained in:
ari committed 2026-10-26 12:26:19 -04:00
1 parent 5b2621acbc
commit ed558a196f
3 files changed
+9 -2

No files matched your search

+5 -1
View File
@@ -148,7 +148,11 @@ let
hostResults = {
# --- NAT mode: the original behaviour has to be unchanged ----------
"nat: no bridged-mode bridge table" = !(natNft ? "hermenix-bridge");
"nat: publish is DNATed to the guest" = has "dnat to 10.77.0.2:8080" natNat.content;
"nat: publish is DNATed to the guest, only for the host's own addresses" =
has "fib daddr type local tcp dport 8080 dnat to 10.77.0.2:8080" natNat.content;
"nat: every DNAT rule is limited to the host's own addresses" = lib.all (
l: !(has "dnat to" l) || has "fib daddr type local" l
) (lib.splitString "\n" natNat.content);
"nat: outbound masquerades on the uplink" = has "masquerade" natNat.content;
"nat: input rules match the fixed service-net address" =
has "ip saddr 10.77.0.2 tcp dport 5000 accept" natInput && !(has "meta mark" natInput);