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;