Enable IPv6 nat
This commit is contained in:
parent
288307a4f6
commit
eaffd00919
@ -40,13 +40,14 @@
|
|||||||
{ address = "192.168.10.1"; prefixLength = 24; }
|
{ address = "192.168.10.1"; prefixLength = 24; }
|
||||||
];
|
];
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
|
enableIPv6 = true;
|
||||||
enable = true;
|
enable = true;
|
||||||
externalInterface = "ens18";
|
externalInterface = "ens18";
|
||||||
|
externalIPv6 = (lib.head config.networking.interfaces.ens18.ipv6.addresses).address;
|
||||||
externalIP = (lib.head config.networking.interfaces.ens18.ipv4.addresses).address;
|
externalIP = (lib.head config.networking.interfaces.ens18.ipv4.addresses).address;
|
||||||
internalInterfaces = [ "ens19" ];
|
internalInterfaces = [ "ens19" ];
|
||||||
internalIPs = [
|
internalIPv6s = [ "fd00:152:152::/48" ];
|
||||||
"10.152.0.0/16"
|
internalIPs = [ "10.152.0.0/16" ];
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
networking.wireguard.enable = true;
|
networking.wireguard.enable = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user