Detect & ban netranges from fail2ban logs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Yann Weber a3e3468776 initial commit 2 months ago
debian initial commit 2 months ago
.gitignore initial commit 2 months ago
.pre-commit-config.yaml initial commit 2 months ago
.pylint.rc initial commit 2 months ago
COPYING initial commit 2 months ago
README.txt initial commit 2 months ago
fail2ban-netrange initial commit 2 months ago
fail2ban_netrange.py initial commit 2 months ago
requirements.txt initial commit 2 months ago
setup.py initial commit 2 months ago

README.txt

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