Compare commits

..

No commits in common. "3df7d8f5f07f655a2e981dea3273ca0288551453" and "100f02a2d84122e49f888766d3e92a5714839eff" have entirely different histories.

2 changed files with 34 additions and 25 deletions

View file

@ -16,9 +16,12 @@ in
unbound = { unbound = {
enable = true; enable = true;
settings.server = { settings = {
server = {
interface = [ netCfg.overlay.interface ]; interface = [ netCfg.overlay.interface ];
access-control = [ "${toString netCfg.overlay.networkCidr} allow" ]; access-control = [
"${toString netCfg.overlay.networkCidr} allow"
];
local-zone = "\"${netCfg.overlay.domain}.\" static"; local-zone = "\"${netCfg.overlay.domain}.\" static";
local-data = local-data =
@ -40,6 +43,15 @@ in
in in
nodeRecords ++ serviceRecords; nodeRecords ++ serviceRecords;
}; };
forward-zone = lib.singleton {
name = ".";
forward-addr = [
"1.1.1.1"
"8.8.8.8"
];
};
};
}; };
nebula.networks.mesh.firewall.inbound = lib.singleton { nebula.networks.mesh.firewall.inbound = lib.singleton {

View file

@ -108,10 +108,7 @@ in
matchConfig.Name = netCfg.overlay.interface; matchConfig.Name = netCfg.overlay.interface;
address = [ netCfg.overlay.cidr ]; address = [ netCfg.overlay.cidr ];
dns = netCfg.overlay.dnsServers; dns = netCfg.overlay.dnsServers;
domains = [ domains = [ netCfg.overlay.domain ];
netCfg.overlay.domain
"~." # Route all DNS traffic to this interface first
];
}; };
}; };
} }