Couple of Bugs – 3.5.1
-
A few things I’ve noticed:
1) You are now defaulting some logs to LOG_USER, which (on ubuntu) uses
syslog
rather thanauth.log
, yet the README only points the jails to look at auth.log, so fail2ban misses those entries. To fix this, I needed to add these lines to my wp-config.php file:define(“WP_FAIL2BAN_COMMENT_LOG”, LOG_AUTH);
define(“WP_FAIL2BAN_PINGBACK_LOG”, LOG_AUTH);2) In most cases, an XMLRPC attack will hit the file many times in succession. By default, ubuntu rsyslog is set to combine these into a single line in the log file that says something like:
message repeated 23 times: [ Pingback requested from XXX.XXX.XXX.XXX]
Which fail2ban rules don’t look for. To resolve this, I had to update this setting in
/etc/rsyslog.conf
:$RepeatedMsgReduction off
# used to be onI would suggest adding that to the README or modifying the regexps to account for combined messages. Seems to me the latter would be the nicest. I can help with this plugin if you want to add me as a dev.
3) Enabling WP_FAIL2BAN_LOG_PINGBACKS does nothing practical, because there is no regexp to look for the message that it generates.
Great plugin, but these few details made it rather time consuming to setup correctly.
- The topic ‘Couple of Bugs – 3.5.1’ is closed to new replies.