Mise à jour 'fail2ban.yml'

This commit is contained in:
Stephane M 2025-02-18 22:37:46 +01:00
parent 56befcd67f
commit bb1bd13d41

View File

@ -47,7 +47,7 @@
[Definition]
actionstart =
actionstop =
actionban = curl -X POST -H "Content-Type: application/json" --data "{"text": "🚨 Fail2ban a banni <ip> après trop d'échecs SSH 🚨"}" {{ mattermost_webhook }}
actionban = curl -X POST -H "Content-Type: application/json" --data "{\"text\": \"🚨 *$(hostname)* : **Fail2ban** a banni l'IP **<ip>** après trop d'échecs SSH 🚨\"}" {{ mattermost_webhook }}
actionunban =
notify: Restart Fail2ban