diff options
author | lassulus <lassulus@lassul.us> | 2021-03-26 20:11:21 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2021-03-26 20:11:21 +0100 |
commit | 7bfa242064e8a36a0568143fb66f46cd401cc734 (patch) | |
tree | cdf735ae821a6bf0a88a7c3bba522d91b21007cd /krebs | |
parent | 55c348834bdb548cc01959f27aeb1d9ac8fd5670 (diff) |
container-networking: configure nat for containers
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/2configs/container-networking.nix | 7 |
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-*" ]; +} |