Add informations about JSON file content
Add informations about JSON file content
Fail2ban action script to stock banned IP in a JSON file
========================================================
This script is design to be use as action script for fail2ban.
Installation
------------
- Put action.d/jsonfile.conf in /etc/fail2ban/action.d
- Put bin/fail2ban-jsonfile in /usr/local/bin/fail2ban-jsonfile
Configuration
-------------
Jail example :
[myapp]
enabled = true
filter = myapp
action = jsonfile[jsonpath=/var/tmp/myapp-banned-ip.json]
logpath = /var/log/myapp.log
Parameters :
- bin :
Specify the path to fail2ban-jsonfile script
Default : /usr/local/bin/fail2ban-jsonfile
- jsonpath :
The path of JSON file
Default : /tmp/fail2ban-jsonfile.json
- umask :
Umask use on JSON file creation (Integer)
Default : 0077