在 joomla 上配置 fail2ban

config fail2ban on joomla

大家好我正在尝试使用 fail2ban 配置 joomla 所以我创建了 文件 /etc/fail2ban/filter.d/joomla-error.conf

并添加了 failregex 如下:

failregex = [[]client <HOST>[]] user .* authentication failure.*

在我将这段代码添加到jail.conf

之后
[joomla-error]
enabled = true
port = http,https
filter = joomla-error
logpath = /var/log/httpd/domains/jayjezz.com.error.log
maxretry = 5
bantime = 30

日志路径是正确的,但每次我尝试重新加载 fail2ban 服务时,我都会得到

ERROR  NOK: ("No 'host' group in '[[]client <HOST>[]] user .* authentication failure.*'",)

我认为我的正则表达式有问题,有人可以为我提供

的正确正则表达式吗
[Thu Sep 28 17:14:23.932811 2017] [:error] [pid 6673] [client 000.000.000.000:56806] user xxxxx authentication failure, referer: http://jayjezz.com/administrator/index.php

谢谢

通过添加脚本来更改 joomla 网站内的文件权限来解决此问题。现在,当我不先启动脚本就无法在 /administrator 下登录时