Detect & ban netranges from fail2ban logs
Find a file
2025-06-09 16:48:29 +02:00
debian initial commit 2025-06-09 16:48:29 +02:00
.gitignore initial commit 2025-06-09 16:48:29 +02:00
.pre-commit-config.yaml initial commit 2025-06-09 16:48:29 +02:00
.pylint.rc initial commit 2025-06-09 16:48:29 +02:00
COPYING initial commit 2025-06-09 16:48:29 +02:00
fail2ban-netrange initial commit 2025-06-09 16:48:29 +02:00
fail2ban_netrange.py initial commit 2025-06-09 16:48:29 +02:00
README.txt initial commit 2025-06-09 16:48:29 +02:00
requirements.txt initial commit 2025-06-09 16:48:29 +02:00
setup.py initial commit 2025-06-09 16:48:29 +02:00

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