mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Update filter-ip-blacklist.conf with examples
Added examples and instructions for IP blacklisting.
This commit is contained in:
parent
add82cc051
commit
610f41c698
1 changed files with 30 additions and 0 deletions
|
|
@ -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
|
||||
#
|
||||
#########################################
|
||||
|
|
|
|||
Loading…
Reference in a new issue