2024-03-16 22:30:15 +01:00
|
|
|
{
|
|
|
|
services = {
|
|
|
|
blocky = {
|
|
|
|
enable = true;
|
|
|
|
settings = {
|
|
|
|
ports = {
|
|
|
|
dns = 53;
|
|
|
|
http = 4000;
|
|
|
|
};
|
|
|
|
upstreams = {
|
|
|
|
groups = {
|
2024-06-08 17:36:11 +02:00
|
|
|
default = [ "127.0.0.1:5455" ];
|
2024-04-23 19:31:04 +02:00
|
|
|
"100.64.0.0/10" = [ "127.0.0.1:5454" ];
|
2024-05-08 18:11:17 +02:00
|
|
|
"fd7a:115c:a1e0::/96" = [ "127.0.0.1:5454" ];
|
2024-06-04 11:01:45 +02:00
|
|
|
"fd7a:115c:a1e0:ab12::/64" = [ "127.0.0.1:5454" ];
|
2024-03-16 22:30:15 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
blocking = {
|
2024-03-16 22:46:09 +01:00
|
|
|
blackLists = {
|
2024-03-16 22:30:15 +01:00
|
|
|
ads = [
|
|
|
|
"https://big.oisd.nl/domainswild"
|
2024-07-03 14:27:25 +02:00
|
|
|
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_2.txt" # AdAway
|
|
|
|
"https://adguardteam.github.io/HostlistsRegistry/assets/filter_8.txt" # browser-based crypto miners
|
2024-03-16 22:30:15 +01:00
|
|
|
"https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews/hosts"
|
2024-07-05 19:29:38 +02:00
|
|
|
./extra-deny.txt
|
2024-03-16 22:30:15 +01:00
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
clientGroupsBlock = {
|
|
|
|
default = [ "ads" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-04 10:42:06 +02:00
|
|
|
caching = {
|
|
|
|
maxTime = -1;
|
|
|
|
};
|
|
|
|
|
2024-03-16 22:30:15 +01:00
|
|
|
customDNS = {
|
|
|
|
mapping = {
|
2024-03-22 09:56:16 +01:00
|
|
|
# Horus
|
|
|
|
"vaultserver.horus.nu" = "192.168.4.32";
|
2024-11-18 10:51:32 +01:00
|
|
|
"downloads.horus.nu" = "192.168.4.129";
|
2024-03-16 22:30:15 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
prometheus = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
queryLog = {
|
|
|
|
type = "csv";
|
|
|
|
target = "/var/lib/blocky/querylog";
|
|
|
|
logRetentionDays = 7;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|