From e7ef51ecbeb5c0c8be8d14201051e6ac682335b5 Mon Sep 17 00:00:00 2001 From: Jean-Pierre PRUNARET Date: Mon, 15 Aug 2016 17:07:45 +0200 Subject: [PATCH] =?UTF-8?q?il=20faut=20configurer=20un=20peu=20plus=20la?= =?UTF-8?q?=20r=C3=A8gle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/activation-manuelle/service-fail2ban.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/base/activation-manuelle/service-fail2ban.nix b/base/activation-manuelle/service-fail2ban.nix index 8f44b50..b28a914 100644 --- a/base/activation-manuelle/service-fail2ban.nix +++ b/base/activation-manuelle/service-fail2ban.nix @@ -42,11 +42,15 @@ mkIf cfg.fail2ban { action = route[blocktype=blackhole] maxretry = 3 ''; + ssh-mail-whois = '' + filter = sshd + maxretry = 3 + action = mail-whois[dest=${destemail}] + ''; }; }; }; # https://github.com/NixOS/nixpkgs/issues/8437 services.fail2ban.jails.ssh-iptables = "enabled = true"; - services.fail2ban.jails.mail-whois-lines = "enabled = true"; }