## Version 2022/08/06 # Fail2Ban action configuration for apprise-api # Author: Roxedus https://github.com/Roxedus # Modified by: nemchik https://github.com/nemchik [Definition] # Option: actionstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD # actionstart = curl -X POST -d '{"tag": "", "type": "info", "body": "The jail as been started successfully."}' \ -H "Content-Type: application/json" \ # Option: actionstop # Notes.: command executed once at the end of Fail2Ban # Values: CMD # actionstop = curl -X POST -d '{"tag": "", "type": "info", "body": "The jail has been stopped."}' \ -H "Content-Type: application/json" \ # Option: actioncheck # Notes.: command executed once before each actionban command # Values: CMD # actioncheck = # Option: actionban # Notes.: command executed when banning an IP. Take care that the # command is executed with Fail2Ban user rights. # Tags: See jail.conf(5) man page # Values: CMD # actionban = curl -X POST -d '{"tag": "", "type": "warning", "body": "The IP has just been banned from after attempts."}' \ -H "Content-Type: application/json" \ # Option: actionunban # Notes.: command executed when unbanning an IP. Take care that the # command is executed with Fail2Ban user rights. # Tags: See jail.conf(5) man page # Values: CMD # actionunban = curl -X POST -d '{"tag": "", "type": "success", "body": "The IP has just been unbanned from ."}' \ -H "Content-Type: application/json" \ [Init] proto = http host = apprise port = 8000 key = apprise url = ://:/notify/ #tag = fail2ban tag = all