|
|
@ -48,13 +48,13 @@ mkIf cfg.fail2ban {
|
|
|
|
ssh-route = ''
|
|
|
|
ssh-route = ''
|
|
|
|
filter = sshd
|
|
|
|
filter = sshd
|
|
|
|
action = route[blocktype=blackhole]
|
|
|
|
action = route[blocktype=blackhole]
|
|
|
|
maxretry = 3
|
|
|
|
|
|
|
|
'';
|
|
|
|
|
|
|
|
ssh-mail-whois = ''
|
|
|
|
|
|
|
|
filter = sshd
|
|
|
|
|
|
|
|
maxretry = 3
|
|
|
|
|
|
|
|
action = mail-whois[dest=${destemail}]
|
|
|
|
|
|
|
|
'';
|
|
|
|
'';
|
|
|
|
|
|
|
|
# désactivation car souci de PATH avec les commandes mail ou sendmail. Nécessite un path motifiable
|
|
|
|
|
|
|
|
# ticket à ouvrir
|
|
|
|
|
|
|
|
#ssh-mail = ''
|
|
|
|
|
|
|
|
# filter = sshd
|
|
|
|
|
|
|
|
# action = sendmail[sendername=Fail2ban @${config.networking.hostName}]
|
|
|
|
|
|
|
|
#'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|