## Version 2022/08/06 # Author: Gilbn from https://technicalramblings.com # Adapted Source: https://gist.github.com/sander1/075736a42db2c66bc6ce0fab159ca683 # Create the Discord Webhook in: Server settings -> Webhooks -> Create Webhooks [Definition] # Notify on Startup actionstart = curl -X POST "" \ -H "Content-Type: application/json" \ -d '{"username":"", "content":":white_check_mark: The **[]** jail has started"}' # Notify on Shutdown actionstop = curl -X POST "" \ -H "Content-Type: application/json" \ -d '{"username":"", "content":":no_entry: The **[]** jail has been stopped"}' # actioncheck = # Notify on Banned actionban = curl -X POST "" \ -H "Content-Type: application/json" \ -d '{"username":"", "content":" :bell: **[]** :hammer:**BANNED**:hammer: IP: []() for **** seconds after **** failure(s). If you want to unban the IP run: `fail2ban-client unban `"}' # Notify on Unbanned actionunban = curl -X POST "" \ -H "Content-Type: application/json" \ -d '{"username":"", "content":":bell: **[]** **UNBANNED** IP: []()"}' [Init] # Discord Webhook URL webhook = https://discordapp.com/api/webhooks/XXXXXXXXXXXXXXX/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX # Discord Bot Username botname = Fail2Ban # User ID to ping # ex: discord_userid = "<@!1234567890>" discord_userid = # URL prefix for an IP checking website # abuseipdb is used by default since there is also an action to report an IP to their API url_check_ip = https://www.abuseipdb.com/check/