Loading nixos/modules/services/security/fail2ban.nix +10 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,13 @@ in ''; }; bantime = mkOption { default = null; type = types.nullOr types.str; example = "10m"; description = lib.mdDoc "Number of seconds that a host is banned."; }; maxretry = mkOption { default = 3; type = types.ints.unsigned; Loading Loading @@ -320,6 +327,9 @@ in ''} # Miscellaneous options ignoreip = 127.0.0.1/8 ${optionalString config.networking.enableIPv6 "::1"} ${concatStringsSep " " cfg.ignoreIP} ${optionalString (cfg.bantime != null) '' bantime = ${cfg.bantime} ''} maxretry = ${toString cfg.maxretry} backend = systemd # Actions Loading Loading
nixos/modules/services/security/fail2ban.nix +10 −0 Original line number Diff line number Diff line Loading @@ -78,6 +78,13 @@ in ''; }; bantime = mkOption { default = null; type = types.nullOr types.str; example = "10m"; description = lib.mdDoc "Number of seconds that a host is banned."; }; maxretry = mkOption { default = 3; type = types.ints.unsigned; Loading Loading @@ -320,6 +327,9 @@ in ''} # Miscellaneous options ignoreip = 127.0.0.1/8 ${optionalString config.networking.enableIPv6 "::1"} ${concatStringsSep " " cfg.ignoreIP} ${optionalString (cfg.bantime != null) '' bantime = ${cfg.bantime} ''} maxretry = ${toString cfg.maxretry} backend = systemd # Actions Loading