From 308290443754d6f56365999f49c7c7718977affb Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown Date: Mon, 21 Oct 2024 00:20:24 +0100 Subject: [PATCH] cofractal-ams01: enable IP forwarding --- ops/nixos/cofractal-ams01/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ops/nixos/cofractal-ams01/default.nix b/ops/nixos/cofractal-ams01/default.nix index d3218dca95..c48340d9c6 100644 --- a/ops/nixos/cofractal-ams01/default.nix +++ b/ops/nixos/cofractal-ams01/default.nix @@ -92,6 +92,11 @@ in boot.kernelModules = [ "kvm-amd" ]; hardware.cpu.amd.updateMicrocode = true; + boot.kernel.sysctl = { + "net.ipv4.ip_forward" = 1; + "net.ipv6.conf.all.forwarding" = 1; + }; + # Use the systemd-boot EFI boot loader. boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true;