nix-infra/common/fragments/fail2ban.nix

10 lines
211 B
Nix
Raw Normal View History

{ config, pkgs, ... }: {
services.fail2ban = {
enable = true;
maxretry = 5;
ignoreIP = [ "127.0.0.0/8" "10.0.0.0/8" "192.168.0.0/16" "78.94.116.222" ];
bantime-increment.enable = true;
};
}