Zionetrix::Git
Repositories
Help
Report an Issue
fail2ban-jsonfile
Code
Commits
Branches
Tags
Search
Tree:
64c8ef5
Branches
Tags
master
fail2ban-jsonfile
README
Initial commit
Benjamin Renard
commited
64c8ef5
at 2014-12-31 15:04:38
README
Blame
History
Raw
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