1
0

Enable NAT on carbon

This commit is contained in:
clerie 2020-12-17 10:41:11 +01:00
parent eaffd00919
commit 28c585cd57

View File

@ -36,6 +36,14 @@
networking.interfaces.enp2s0.ipv6.addresses = [ { address = "fd00:152:152:4::1"; prefixLength = 64; } ]; networking.interfaces.enp2s0.ipv6.addresses = [ { address = "fd00:152:152:4::1"; prefixLength = 64; } ];
networking.interfaces.enp2s0.ipv4.addresses = [ { address = "10.152.4.1"; prefixLength = 24; } ]; networking.interfaces.enp2s0.ipv4.addresses = [ { address = "10.152.4.1"; prefixLength = 24; } ];
networking.nat = {
enableIPv6 = true;
enable = true;
externalInterface = "enp1s0";
internalIPv6s = [ "fd00:152:152::/48" ];
internalIPs = [ "10.152.0.0/16" ];
};
networking.wireguard.enable = true; networking.wireguard.enable = true;
networking.wireguard.interfaces = { networking.wireguard.interfaces = {
wg-porter = { wg-porter = {