Merge pull request #807 from xslidian/patch-1

grep IP at the start of lines
pull/847/head
Yaroslav Halchenko 2014-10-29 23:07:10 -04:00
commit efbf5064a1
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ actionban = printf %%b "Subject: [Fail2Ban] <name>: banned <ip> from `uname -n`
Here is more information about <ip>:\n
`/usr/bin/whois <ip> || echo missing whois program`\n\n
Lines containing IP:<ip> in <logpath>\n
`grep '[^0-9]<ip>[^0-9]' <logpath>`\n\n
`grep '\([^0-9]\|^\)<ip>[^0-9]' <logpath>`\n\n
Regards,\n
Fail2Ban" | /usr/sbin/sendmail -f <sender> <dest>