https://bugs.contribs.org/show_bug.cgi?id=10857
Bug ID: 10857
Summary: Fail2Ban error in the jail http-badbots
Classification: Contribs
Product: SME Contribs
Version: 9.2
Hardware: ---
OS: ---
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: smeserver-fail2ban
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
While I enabled the jail http-badbots I was wondering, that nothing shows up
when checking the jails.
I added to the filter apache-badbots.conf a few UA's (i.e.
AhrefsBot/6\.1|masscan/1\.0|Nimbostratus-Bot/v1\.3\.2) which really occur
aggresive in /httpd/access_log.
The monitored log for fail2ban is the /httpd/error_log which doesn't show UA's
from bots. Therefore I added a custom-template for jail.conf:
30Service25httpd:
- snip -
[http-badbots]
enabled = true
filter = apache-badbots
logpath = /var/log/httpd/access_log
action = smeserver-iptables[port="$port",protocol=tcp,bantime=$bantime]
EOF
$OUT .= " smeserver-sendmail[name=\"Apache
(badbots)\",dest=$maildest]\n"
if ($mail eq 'enabled');
$OUT .=<<"EOF";
- snip -
Please note the logpath. IMVHO this should be the default path for this jail.
regards,
stefan
--
You are receiving this mail because:
You are the QA Contact for the bug._______________________________________________
Mail for each SME Contribs bug report
To unsubscribe, e-mail [email protected]
Searchable archive at https://lists.contribs.org/mailman/public/contribteam/