Answer the question
In order to leave comments, you need to log in
Fail2ban notifications in Telegram?
Web searches lead only to setting up telegram-cli. But I would like to configure via api.
For example, through a simple:
curl "https://api.telegram.org/botTOKEN/sendMessage?chat_id=XXXXXXXX&text=Asterisk-jail_is_stopped"
and ...Asterisk-jail_is_started
. Answer the question
In order to leave comments, you need to log in
In /etc/fail2ban/jail.conf, the action parameter specifies the configuration from the /etc/fail2ban/action.d directory
In general, Google will help you
https://blog.mypapit.net/2015/08/how-to-send- fail2...
If you don't want to use telegram-cli, then in /usr/share/fail2ban/fail2ban-telegram.sh write replacing telegram-cli with curl
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question