my nix configs for my servers and desktop

remove jail

Changed files
-42
hosts
baal
buer
valefar
-14
hosts/baal/default.nix
···
maxtime = "168h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
-
jails = {
-
apache-nohome-iptables.settings = {
-
# Block an IP address if it accesses a non-existent
-
# home directory more than 5 times in 10 minutes,
-
# since that indicates that it's scanning.
-
filter = "apache-nohome";
-
action = ''iptables-multiport[name=HTTP, port="http,https"]'';
-
logpath = "/var/log/httpd/error_log*";
-
backend = "auto";
-
findtime = 600;
-
bantime = 600;
-
maxretry = 5;
-
};
-
};
};
virtualisation.docker = {
···
maxtime = "168h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
};
virtualisation.docker = {
-14
hosts/buer/default.nix
···
maxtime = "168h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
-
jails = {
-
apache-nohome-iptables.settings = {
-
# Block an IP address if it accesses a non-existent
-
# home directory more than 5 times in 10 minutes,
-
# since that indicates that it's scanning.
-
filter = "apache-nohome";
-
action = ''iptables-multiport[name=HTTP, port="http,https"]'';
-
logpath = "/var/log/httpd/error_log*";
-
backend = "auto";
-
findtime = 600;
-
bantime = 600;
-
maxretry = 5;
-
};
-
};
};
# Static IP configuration via systemd-networkd
···
maxtime = "168h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
};
# Static IP configuration via systemd-networkd
-14
hosts/valefar/default.nix
···
maxtime = "168h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
-
jails = {
-
apache-nohome-iptables.settings = {
-
# Block an IP address if it accesses a non-existent
-
# home directory more than 5 times in 10 minutes,
-
# since that indicates that it's scanning.
-
filter = "apache-nohome";
-
action = ''iptables-multiport[name=HTTP, port="http,https"]'';
-
logpath = "/var/log/httpd/error_log*";
-
backend = "auto";
-
findtime = 600;
-
bantime = 600;
-
maxretry = 5;
-
};
-
};
};
# =============================================================================
···
maxtime = "168h"; # Do not ban for more than 1 week
overalljails = true; # Calculate the bantime based on all the violations
};
};
# =============================================================================