Skip to content

Receive Mattermost notifications when Fail2ban triggers an action (ban, unban, start, stop)

Notifications You must be signed in to change notification settings

mbelloiseau/fail2ban-mattermost-notifications

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fail2ban-mattermost-notifications

Receive Mattermost notifications when Fail2ban triggers an action (ban, unban, start, stop)

mattermost_notif mattermost_notif

Requirements

  • curl
  • geoiplookup

Usage

  • Copy mattermost.sh (/opt/scripts/mattermost.sh for example) and set your webhook url (line 3)
  • Copy mattermost.conf into /etc/fail2ban/action.d and set the right script location
  • Update your jails and include the mattermost action

Example with the Nginx jail

[nginx-http-auth]
enabled = true
port    = http,https
logpath = %(nginx_error_log)s
action = ufw
         mattermost

That's it !

About

Receive Mattermost notifications when Fail2ban triggers an action (ban, unban, start, stop)

Topics

Resources

Stars

Watchers

Forks

Languages