container-networking: configure nat for containers
This commit is contained in:
parent
55c348834b
commit
7bfa242064
7
krebs/2configs/container-networking.nix
Normal file
7
krebs/2configs/container-networking.nix
Normal 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-*" ];
|
||||
}
|
Loading…
Reference in New Issue
Block a user