usage: fail2ban_netrange.py [-h] [-i INTERVAL] [-c CONFIG_DIR] [-p FAIL2BAN_CLIENT] [-e EXCLUDE_JAILS] [-d] [-l LOGFILE] [-s STATS_PORT] [-v] [-D] [--debug-inotify]
[LOGFILE]
Detect & ban netrange from Fail2Ban logfile
positional arguments:
LOGFILE Fail2Ban logfiles
options:
-h, --help show this help message and exit
-i INTERVAL, --interval INTERVAL
Interval between file reads. Use special value "inotify" (default) to use inotify
-c CONFIG_DIR, --config-dir CONFIG_DIR
Fail2Ban configuration directory
-p FAIL2BAN_CLIENT, --fail2ban-client FAIL2BAN_CLIENT
Path to fail2ban-client
-e EXCLUDE_JAILS, --exclude-jails EXCLUDE_JAILS
List of jail, comma separated, to exclude
-d, --dry-run Do not call fail2ban-client
-l LOGFILE, --logfile LOGFILE
Log to file and stderr
-s STATS_PORT, --stats-port STATS_PORT
Listen for tcp connection on given port on locahost sending stats in JSON
-v, --verbose
-D, --debug
--debug-inotify