feat(hydrogen): blocky client lookup

This commit is contained in:
Laureηt 2022-12-27 14:11:10 +01:00
parent 5f3695a5a3
commit 0ae9cb327b
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -8,6 +8,7 @@
networking = { networking = {
hostName = name; hostName = name;
domain = "fainsin.bzh"; domain = "fainsin.bzh";
nameservers = [ "127.0.0.1" "1.1.1.1" "1.0.0.1" ];
firewall = { firewall = {
allowedTCPPorts = [ allowedTCPPorts = [
22 # ssh 22 # ssh
@ -52,6 +53,11 @@
enable = true; enable = true;
settings = { settings = {
upstream.default = [ "208.67.222.222" "208.67.220.220" ]; upstream.default = [ "208.67.222.222" "208.67.220.220" ];
clientLookup.clients = {
hydrogen = [ "10.0.0.1" "127.0.0.1" ];
pixel5 = [ "10.0.0.2" ];
neodymium = [ "10.0.0.3" ];
};
blocking = { blocking = {
refreshPeriod = "24h"; refreshPeriod = "24h";
clientGroupsBlock.default = clientGroupsBlock.default =