From acb3f9c84934dcc052434da672083e1359c5838e Mon Sep 17 00:00:00 2001 From: Luke Granger-Brown <hg@lukegb.com> Date: Sat, 30 Sep 2023 21:22:36 +0000 Subject: [PATCH] swann: fix en-ee routes so they belong to the ee route table --- ops/nixos/swann/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ops/nixos/swann/default.nix b/ops/nixos/swann/default.nix index 59f4c49004..9a8aadc0c6 100644 --- a/ops/nixos/swann/default.nix +++ b/ops/nixos/swann/default.nix @@ -276,7 +276,18 @@ in { }; }]) // { linkConfig.RequiredForOnline = "no"; - networkConfig.Gateway = "10.42.0.1"; + routes = [{ + routeConfig = { + Gateway = "10.42.0.1"; + Destination = "0.0.0.0/0"; + Table = routeTables.ee; + }; + } { + routeConfig = { + Destination = "10.42.0.0/24"; + Table = routeTables.ee; + }; + }]; }; networks."40-en-gnet" = (physicalNetwork routeTables.gnet "0xcafe" [{ # Catch-all mop-up rule at the end.