## Version 2022/12/18 # Fail2Ban configuration file # # Author: Quietsy # # Add the following to jail.local (uncommented) to apply the gotify action to all bans with all jails # Change the url to have a valid gotify address and a valid token # # [DEFAULT] # action = %(action_)s # gotify[url="https://gotify.domain.com/message?token=lkghlkhjo8y9"] [Definition] # Option: actionstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD # actionstart = curl --data '{"message": "Started "}' -X POST -H Content-Type:application/json # Option: actionstop # Notes.: command executed once at the end of Fail2Ban # Values: CMD # actionstop = curl --data '{"message": "Stopped "}' -X POST -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 -H Content-Type:application/json \ --data '{"message": "⛔ ⛔\n\n got banned for seconds after tries.\n\nUnban command:\nfail2ban-client unban "}' # 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 -H Content-Type:application/json --data '{"message": "✅ ✅\n\n is now unbanned"}' [Init] url =