adguard stuffs

This commit is contained in:
mjallen18
2025-05-12 13:01:12 -05:00
parent b896cc46f3
commit e16e0e82e5
2 changed files with 35 additions and 8 deletions

View File

@@ -4,5 +4,33 @@
enable = true;
openFirewall = true;
mutableSettings = true;
}
}
settings = {
users = [
{
name = "mjallen";
password = "$2a$10$G07P7V1EnBQxWtMNGyfgTOTpAgr4d.uqYoG.cGSFCv9jQdiYWCsfq";
}
];
dns = {
upstream_dns = [
"https://dns10.quad9.net/dns-query"
"1.1.1.1"
"8.8.8.8"
];
bootstrap_dns = [
"9.9.9.10"
"149.112.112.10"
"2620:fe::10"
"2620:fe::fe:10"
];
upstream_mode = "load_balance";
trusted_proxies = [
"127.0.0.0/8"
"::1/128"
"10.0.1.18"
];
cache_optimistic = true;
};
};
};
}

View File

@@ -13,6 +13,8 @@ in
firewall = {
enable = true;
allowPing = true;
allowedTCPPorts = [ 80 ];
allowedUDPPorts = [ 80 ];
};
# Enable Network Manager
@@ -57,12 +59,9 @@ in
ipv4 = {
method = "manual";
address-data = [{
address = "10.0.1.2";
prefix = 24;
}];
address = "10.0.1.2/24";
gateway = "10.0.1.1";
dns = [ "10.0.1.1" "1.1.1.1" ];
dns = "1.1.1.1";
};
ipv6 = {
addr-gen-mode = "stable-privacy";
@@ -73,4 +72,4 @@ in
};
};
};
}
}