From 3420b853de5cbdf9f5fcc8ed42c09ec7cf1a0408 Mon Sep 17 00:00:00 2001 From: Astro Date: Wed, 31 Aug 2022 19:50:48 +0200 Subject: [PATCH] leon: enable ip forwarding --- hosts/leon/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hosts/leon/default.nix b/hosts/leon/default.nix index 7da24cdc..353f78be 100644 --- a/hosts/leon/default.nix +++ b/hosts/leon/default.nix @@ -109,6 +109,9 @@ in networkConfig.IPv6AcceptRA = true; }; }; + # enable IP routing + boot.kernel.sysctl."net.ipv4.conf.all.forwarding" = 1; + boot.kernel.sysctl."net.ipv4.conf.default.forwarding" = 1; security.sudo = { enable = true;