summaryrefslogtreecommitdiffstats
path: root/krebs/2configs/container-networking.nix
diff options
context:
space:
mode:
Diffstat (limited to 'krebs/2configs/container-networking.nix')
-rw-r--r--krebs/2configs/container-networking.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/krebs/2configs/container-networking.nix b/krebs/2configs/container-networking.nix
new file mode 100644
index 000000000..fa4488800
--- /dev/null
+++ b/krebs/2configs/container-networking.nix
@@ -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-*" ];
+}