From 3f739d1e5976489850e09050207c69e0137ce7c3 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Sun, 22 Nov 2026 13:41:44 -0800 Subject: [PATCH] Bring up loopback in sandbox CNI namespaces Assisted-by: claude-sonnet-5.5 --- nixos/snowglobe.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/snowglobe.nix b/nixos/snowglobe.nix index 5f75f93971fe0644ea41260da6a616e9ece44d3b..aafb493b4212b2983d9b3bcf5c4e49a3c7bab32f 100644 --- a/nixos/snowglobe.nix +++ b/nixos/snowglobe.nix @@ -46,12 +46,14 @@ in cniVersion = "1.0.0"; name = "sandbox"; plugins = [ + { type = "loopback"; } { type = "bridge"; bridge = "sandbox0"; isGateway = true; ipMasq = true; ipam = { type = "host-local"; ranges = [ [ { subnet = "10.89.0.0/24"; } ] ]; routes = [ { dst = "0.0.0.0/0"; } ]; }; } { type = "portmap"; capabilities.portMappings = true; snat = true; } ]; }; services.nomad.settings.client.cni_path = "${pkgs.cni-plugins}/bin"; services.nomad.settings.client.cni_config_dir = "/etc/cni/net.d"; + systemd.services.nomad.restartTriggers = [ config.environment.etc."cni/net.d/sandbox.conflist".source ]; networking.firewall.interfaces.sandbox0.allowedTCPPorts = [ 15432 ]; networking.firewall.extraStopCommands = '' iptables -t raw -D PREROUTING -i sandbox0 -j sandbox-egress 2>/dev/null || true -- 2.54.1