1
0

router: explicitly use pre-router as default gateways and dns as nameserver

This commit is contained in:
clerie 2022-07-17 15:05:25 +02:00
parent 87b8d2f906
commit 2f84e34fe4

View File

@ -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;