NixOS-Config/modules/system/services/ssh/fail2ban/default.nix

10 lines
160 B
Nix
Raw Normal View History

2024-10-09 03:36:08 -04:00
{ outputs, ... }:
{
services.fail2ban = {
enable = true;
maxretry = 5;
bantime = "5m";
ignoreIP = [ "${outputs.ips.localSpan}.0/24" ];
};
}