Zionetrix::Git
Repositories
Help
Report an Issue
fail2ban-jsonfile
Code
Commits
Branches
Tags
Search
Tree:
64c8ef5
Branches
Tags
master
fail2ban-jsonfile
action.d
jsonfile.conf
Initial commit
Benjamin Renard
commited
64c8ef5
at 2014-12-31 15:04:38
jsonfile.conf
Blame
History
Raw
# Fail2Ban configuration file # # Author: Benjamin Renard # # $Revision$ # [Definition] # Option: actionstart # Notes.: command executed once at the start of Fail2Ban. # Values: CMD # actionstart = <bin> -j <jsonpath> -a start -u <umask> # Option: actionstop # Notes.: command executed once at the end of Fail2Ban # Values: CMD # actionstop = <bin> -j <jsonpath> -a stop # Option: actioncheck # Notes.: command executed once before each actionban command # Values: CMD # # 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 = <bin> -j <jsonpath> -a ban -i "<ip>" -f "<failures>" -t "<time>" -u <umask> # 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 = <bin> -j <jsonpath> -a unban -i "<ip>" -u <umask> [Init] # Option: bin # Note Specify the path to fail2ban-jsonfile script # # Values: Path to fail2ban-jsonfile script Default : /usr/local/bin/fail2ban-jsonfile bin = /usr/local/bin/fail2ban-jsonfile # Option: jsonpath # Note The path of JSON file # # Values: Path to JSON file Default : /tmp/fail2ban-jsonfile.json jsonpath = /tmp/fail2ban-jsonfile.json # Option: umask # Note Umask use on JSON file creation # # Values: INTEGER (UMASK) Default : 0077 umask = 0077