crazy-max / docker-fail2ban

Fail2ban Docker image
MIT License
620 stars 77 forks source link

Is it possible to support Webhook? #131

Closed db-one closed 1 year ago

db-one commented 1 year ago

Is it possible to support Webhook? To make it easier for https://api.telegram.org to receive notification messages Thank you very much

schklom commented 1 year ago

You can customize actions with /data/actions.d/sendmail-common.local. The default is at /etc/fail2ban/sendmail-common.conf.

All you need is to call your webhook in python.

Alternatively, set up Apprise-API and Mailrise to use any notification system you want. You send notification emails to Mailrise triggering calls to Apprise which can call most notification systems.