From ef189d1e7774a4bdc67c9fd09893e64af23894b1 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 3 Dec 2026 01:00:45 +0000 Subject: wiregrill: forward on the hub, for both families ne set IPv4 forwarding itself; IPv6 forwarding came from tv's dirt. --- configs/wiregrill.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configs') diff --git a/configs/wiregrill.nix b/configs/wiregrill.nix index b8d23f49..baa9f3d8 100644 --- a/configs/wiregrill.nix +++ b/configs/wiregrill.nix @@ -25,6 +25,11 @@ in lib.mkIf cfg.enable (lib.mkMerge [ { + # The hub passes packets between the other hosts. + boot.kernel.sysctl = lib.mkIf isHub { + "net.ipv4.ip_forward" = lib.mkDefault true; + "net.ipv6.conf.all.forwarding" = lib.mkDefault true; + }; networking.wireguard.interfaces.wiregrill = { ips = lib.optional (cfg.net.ip4 != null) (toCidrNotation cfg.net.ip4) ++ -- cgit v1.3.1 [cgit] Unable to lock slot /tmp/cgit/9f100000.lock: Permission denied (13)