From 28c585cd578d62d284f95752194f69f9d12bbd4d Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 17 Dec 2020 10:41:11 +0100 Subject: [PATCH] Enable NAT on carbon --- hosts/carbon/configuration.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hosts/carbon/configuration.nix b/hosts/carbon/configuration.nix index f2d21cf..29e00ca 100644 --- a/hosts/carbon/configuration.nix +++ b/hosts/carbon/configuration.nix @@ -36,6 +36,14 @@ 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.nat = { + enableIPv6 = true; + enable = true; + externalInterface = "enp1s0"; + internalIPv6s = [ "fd00:152:152::/48" ]; + internalIPs = [ "10.152.0.0/16" ]; + }; + networking.wireguard.enable = true; networking.wireguard.interfaces = { wg-porter = {