From 268efad778c9db82b94d265377a94081c620051a Mon Sep 17 00:00:00 2001 From: albert Date: Fri, 5 Apr 2024 08:19:44 +0900 Subject: [PATCH] Update container --- nixos/hosts/framework-server/containers.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/nixos/hosts/framework-server/containers.nix b/nixos/hosts/framework-server/containers.nix index ba9b1765..89b32aae 100644 --- a/nixos/hosts/framework-server/containers.nix +++ b/nixos/hosts/framework-server/containers.nix @@ -8,9 +8,11 @@ in { }; networking = { - nat.enable = true; - nat.internalInterfaces = [ "ve-+" ]; - nat.externalInterface = lanInterface; - firewall.extraCommands = ''iptables -t nat -A POSTROUTING -o ${lanInterface} -j MASQUERADE''; + networkmanager.unmanaged = [ "interface-name:ve-*" ]; + nat = { + enable = true; + externalInterface = lanInterface; + internalInterfaces = [ "ve-+" ]; + }; }; }