Update filter-ip-blacklist.conf with examples

Added examples and instructions for IP blacklisting.
This commit is contained in:
Georgiy Sitnikov 2025-10-23 10:34:40 +02:00 committed by GitHub
parent add82cc051
commit 610f41c698
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,3 +13,33 @@ failregex = ^(?P<ip4>\d{1,3}(?:\.\d{1,3}){3}/\d{1,2})\s+
#
ignoreregex =
datepattern = ^\[?ExYear(?P<_sep>[-/.])Month(?P=_sep)Day(?:T| ?)24hour:Minute:Second
########################################
#
# Single IP Example:
# 10.10.10.10
# 10.10.10.10 [2015-01-01 12:00:00]
# 10.10.10.10/32 [2015-01-01 12:00:00]
#
#########################################
#
# IP Range Options:
# 10.10.10.10/32 = 10.10.10.10
# 10.10.10.10/24 = 10.10.10.*
# 10.10.10.10/16 = 10.10.*.*
# 10.10.10.10/8 = 10.*.*.*
#
#########################################
#
# IP Range Examples:
# 10.10.10.10/16 [2015-01-01 12:00:00]
# 10.10.10.10/24 [2015-01-01 12:00:00]
#
#########################################
#
# You can use following command to add ips:
# echo "10.10.10.10/8 [$(date +"%Y-%m-%d %H:%M:%S")]" >> /var/log/ip-blacklist.log
#
#########################################