Update container

This commit is contained in:
albert 2024-04-05 08:19:44 +09:00
parent 7e5cb4570b
commit 268efad778
No known key found for this signature in database
GPG key ID: 64F6C4EB46C4543A

View file

@ -8,9 +8,11 @@ in {
}; };
networking = { networking = {
nat.enable = true; networkmanager.unmanaged = [ "interface-name:ve-*" ];
nat.internalInterfaces = [ "ve-+" ]; nat = {
nat.externalInterface = lanInterface; enable = true;
firewall.extraCommands = ''iptables -t nat -A POSTROUTING -o ${lanInterface} -j MASQUERADE''; externalInterface = lanInterface;
internalInterfaces = [ "ve-+" ];
};
}; };
} }