1
0

Enable IPv6 nat

This commit is contained in:
clerie 2020-12-17 03:56:06 +01:00
parent 288307a4f6
commit eaffd00919

View File

@ -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;