Created
October 5, 2014 16:26
-
-
Save FrankGrimm/2047ba79d130972a7dca to your computer and use it in GitHub Desktop.
prowl config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fail2Ban configuration file | |
# Author: Frank Grimm | |
# see also: http://blog.thelifeofkenneth.com/2012/03/prowl-push-notifications-from-bash.html | |
[Definition] | |
# Option: actionstart | |
# Notes.: command executed once at the start of Fail2Ban. | |
# Values: CMD | |
# | |
actionstart = curl -s https://api.prowlapp.com/publicapi/add -F apikey="<prowl_apikey>" -F priority="<prowl_priority>" -F application="<prowl_sender>" -F event="`hostname`" -F description="jail <name> started" | |
# Option: actionstop | |
# Notes.: command executed once at the end of Fail2Ban | |
# Values: CMD | |
# | |
actionstop = curl -s https://api.prowlapp.com/publicapi/add -F apikey="<prowl_apikey>" -F priority="<prowl_priority>" -F application="<prowl_sender>" -F event="`hostname`" -F description="jail <name> stopped" | |
# 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: <ip> IP address | |
# <failures> number of failures | |
# <time> unix timestamp of the ban time | |
# Values: CMD | |
# | |
actionban = curl -s https://api.prowlapp.com/publicapi/add -F apikey="<prowl_apikey>" -F priority="<prowl_priority>" -F application="<prowl_sender>" -F event="`hostname`" -F description="jail <name> banned <ip> (rev: `dig +short -x <ip>`) after <failures> failures" | |
# Option: actionunban | |
# Notes.: command executed when unbanning an IP. Take care that the | |
# command is executed with Fail2Ban user rights. | |
# Tags: <ip> IP address | |
# <failures> number of failures | |
# <time> unix timestamp of the ban time | |
# Values: CMD | |
# | |
actionunban = | |
[Init] | |
# Defaut name of the chain | |
# | |
name = default | |
# notification application entry | |
prowl_sender = fail2ban | |
# notification priority ( -2=very low.. 0=normal.. 2=emergency ) | |
prowl_priority = -2 | |
prowl_apikey = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment