From 2f84e34fe4a49691155bd0f4e325df59d5c314ff Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 17 Jul 2022 15:05:25 +0200 Subject: [PATCH] router: explicitly use pre-router as default gateways and dns as nameserver --- hosts/router/configuration.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hosts/router/configuration.nix b/hosts/router/configuration.nix index 048c7d3..0df099a 100644 --- a/hosts/router/configuration.nix +++ b/hosts/router/configuration.nix @@ -33,10 +33,10 @@ networking.hostName = "router"; - networking.defaultGateway = { address = "10.42.10.1"; interface = "net-services"; }; - networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::1"; interface = "net-services"; }; + networking.defaultGateway = { address = "10.42.10.25"; interface = "net-services"; }; + networking.defaultGateway6 = { address = "2a01:4f8:1c0c:8221::25"; interface = "net-services"; }; - networking.nameservers = [ "10.42.10.1" "2a01:4f8:1c0c:8221::1" ]; + networking.nameservers = [ "10.42.10.8" "2a01:4f8:1c0c:8221::8" ]; boot.kernel.sysctl = { "net.ipv4.conf.all.forwarding" = true;