|
|
|
@ -42,7 +42,7 @@ actionban = printf %%b "Hi,\n
|
|
|
|
|
Here is more information about <ip>:\n
|
|
|
|
|
`whois <ip> || echo missing whois program`\n\n
|
|
|
|
|
Lines containing IP:<ip> in <logpath>\n
|
|
|
|
|
`grep -E '(^|[^0-9])<ip>([^0-9]|$)' <logpath>`\n\n
|
|
|
|
|
`grep -E <grepopts> '(^|[^0-9])<ip>([^0-9]|$)' <logpath>`\n\n
|
|
|
|
|
Regards,\n
|
|
|
|
|
Fail2Ban"|mail -s "[Fail2Ban] <name>: banned <ip> from `uname -n`" <dest>
|
|
|
|
|
|
|
|
|
@ -67,3 +67,7 @@ dest = root
|
|
|
|
|
# Path to the log files which contain relevant lines for the abuser IP
|
|
|
|
|
#
|
|
|
|
|
logpath = /dev/null
|
|
|
|
|
|
|
|
|
|
# Number of log lines to include in the email
|
|
|
|
|
#
|
|
|
|
|
grepopts = -m 1000
|
|
|
|
|