added fail2ban

This commit is contained in:
mc-fucker 2023-01-18 14:34:15 +01:00
parent f7a69c79d2
commit e5c45cc51e

View file

@ -44,9 +44,9 @@ in
LOGGENERATIONS = "14"; LOGGENERATIONS = "14";
}; };
services.logrotate = { #services.logrotate = {
enable = true; # enable = true;
}; #};
users.defaultUserShell = pkgs.zsh; users.defaultUserShell = pkgs.zsh;
@ -66,7 +66,18 @@ in
passwordAuthentication = false; passwordAuthentication = false;
extraConfig = "ClientAliveInterval 60"; extraConfig = "ClientAliveInterval 60";
}; };
tailscale.enable = true; tailscale.enable = true;
fail2ban = {
enable = true;
ignoreIP =
[
"100.64.0.0/16"
];
};
atd.enable = true;
}; };
networking.firewall = { networking.firewall = {