From eaffd00919f44f943236ad2f52f9d5b5d5a7e827 Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 17 Dec 2020 03:56:06 +0100 Subject: [PATCH] Enable IPv6 nat --- hosts/nonat/configuration.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hosts/nonat/configuration.nix b/hosts/nonat/configuration.nix index a0a955e..f4fd11a 100644 --- a/hosts/nonat/configuration.nix +++ b/hosts/nonat/configuration.nix @@ -40,13 +40,14 @@ { address = "192.168.10.1"; prefixLength = 24; } ]; networking.nat = { + enableIPv6 = true; enable = true; externalInterface = "ens18"; + externalIPv6 = (lib.head config.networking.interfaces.ens18.ipv6.addresses).address; externalIP = (lib.head config.networking.interfaces.ens18.ipv4.addresses).address; internalInterfaces = [ "ens19" ]; - internalIPs = [ - "10.152.0.0/16" - ]; + internalIPv6s = [ "fd00:152:152::/48" ]; + internalIPs = [ "10.152.0.0/16" ]; }; networking.wireguard.enable = true;