fixed adguard

This commit is contained in:
Rouven Seifert 2023-04-27 18:11:10 +02:00
parent ffdd151409
commit 0677beb1c0
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 11 additions and 0 deletions

View file

@ -1,5 +1,7 @@
{ ... }:
{
networking.firewall.allowedTCPPorts = [53];
networking.firewall.allowedUDPPorts = [53];
services.adguardhome = {
enable = true;
openFirewall = true;

View file

@ -5,6 +5,15 @@
useNetworkd = true;
enableIPv6 = true;
};
services.resolved = {
enable = true;
# make room for the adguard dns
extraConfig = ''
[Resolve]
DNS=127.0.0.1
DNSStubListener=no
'';
};
systemd.network = {
enable = true;
networks."10-loopback" = {