container-networking: configure nat for containers

This commit is contained in:
lassulus 2021-03-26 20:11:21 +01:00
parent 55c348834b
commit 7bfa242064

View file

@ -0,0 +1,7 @@
{ lib, ... }:
{
networking.nat.enable = true;
networking.nat.internalInterfaces = ["ve-+"];
networking.nat.externalInterface = lib.mkDefault "et0";
networking.networkmanager.unmanaged = [ "interface-name:ve-*" ];
}