blocky: updates

This commit is contained in:
notohh 2024-01-17 09:03:34 -05:00
parent 3b416b4677
commit 9a73fab307
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -1,8 +1,4 @@
{ {pkgs, ...}: {
pkgs,
config,
...
}: {
networking.firewall.allowedTCPPorts = [53 4000]; networking.firewall.allowedTCPPorts = [53 4000];
networking.firewall.allowedUDPPorts = [53]; networking.firewall.allowedUDPPorts = [53];
@ -12,7 +8,7 @@
enable = true; enable = true;
settings = { settings = {
connectIPVersion = "v4"; connectIPVersion = "v4";
upstreamTimeout = "30s"; upstreamTimeout = "5s";
startVerifyUpstream = false; startVerifyUpstream = false;
minTlsServeVersion = "1.2"; minTlsServeVersion = "1.2";
log = { log = {
@ -23,12 +19,24 @@
dns = 53; dns = 53;
http = 4000; http = 4000;
https = 443; https = 443;
tls = 853;
};
upstreams = {
strategy = "strict";
timeout = "30s";
groups = {
default = [
"tcp+udp:127.0.0.1:5335"
"tcp-tls:dns.quad9.net"
];
};
}; };
upstream.default = ["tcp+udp:127.0.0.1:5335"];
blocking = { blocking = {
blockType = "nxDomain";
loading = { loading = {
strategy = "fast"; strategy = "fast";
concurrency = 8; concurrency = 8;
refreshPeriod = "4h";
}; };
blackLists = { blackLists = {
ads = [ ads = [
@ -64,6 +72,9 @@
"https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser" "https://zerodot1.gitlab.io/CoinBlockerLists/hosts_browser"
"https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts" "https://raw.githubusercontent.com/StevenBlack/hosts/master/alternates/fakenews-only/hosts"
]; ];
catchall = [
"https://big.oisd.nl/domainswild"
];
}; };
whiteLists = { whiteLists = {
default = [ default = [
@ -77,6 +88,7 @@
"tracking" "tracking"
"malicious" "malicious"
"misc" "misc"
"catchall"
]; ];
}; };
}; };
@ -115,7 +127,7 @@
redis = { redis = {
address = "100.94.214.100:6381"; address = "100.94.214.100:6381";
password = "blocky"; password = "blocky";
database = 2; database = 0;
required = false; required = false;
connectionAttempts = 10; connectionAttempts = 10;
connectionCooldown = "5s"; connectionCooldown = "5s";
@ -132,6 +144,9 @@
enable = true; enable = true;
path = "/metrics"; path = "/metrics";
}; };
queryLog = {
type = "console";
};
}; };
}; };
} }