summary refs log tree commit diff
path: root/nixos/modules/services/security/fail2ban.nix
diff options
context:
space:
mode:
authorSvein Ove Aas <sveina@gmail.com>2015-12-26 16:50:37 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2016-01-04 21:52:32 +0100
commitf16594e18bc6b7a67f1d8072701a980fddf97b8c (patch)
treef7676b7540566821f21b5a078fad4aa283159dbf /nixos/modules/services/security/fail2ban.nix
parentbb288f43af5a031de79133d38725cd7942d8f9f3 (diff)
downloadnixpkgs-f16594e18bc6b7a67f1d8072701a980fddf97b8c.tar
nixpkgs-f16594e18bc6b7a67f1d8072701a980fddf97b8c.tar.gz
nixpkgs-f16594e18bc6b7a67f1d8072701a980fddf97b8c.tar.bz2
nixpkgs-f16594e18bc6b7a67f1d8072701a980fddf97b8c.tar.lz
nixpkgs-f16594e18bc6b7a67f1d8072701a980fddf97b8c.tar.xz
nixpkgs-f16594e18bc6b7a67f1d8072701a980fddf97b8c.tar.zst
nixpkgs-f16594e18bc6b7a67f1d8072701a980fddf97b8c.zip
nixos/fail2ban: Enable jails by default
With jails defaulting to 'enabled = true', the sshd jail that NixOS
defines will now be enabled.

[Bjørn: tweak commit message]
Diffstat (limited to 'nixos/modules/services/security/fail2ban.nix')
-rw-r--r--nixos/modules/services/security/fail2ban.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/nixos/modules/services/security/fail2ban.nix b/nixos/modules/services/security/fail2ban.nix
index 6288b1b3ba8..1d3e18dcab2 100644
--- a/nixos/modules/services/security/fail2ban.nix
+++ b/nixos/modules/services/security/fail2ban.nix
@@ -138,6 +138,7 @@ in
         findtime = 600
         maxretry = 3
         backend  = systemd
+        enabled  = true
        '';
 
     # Block SSH if there are too many failing connection attempts.