为什么 fail2ban 不匹配脚本未找到
why does fail2ban not match script not found
为什么下面fail2ban regex
failregex = ^%(_apache_error_client)s ((AH001(28|30): )?File does not exist|(AH01264: )?script not found or unable to stat).*$
^%(_apache_error_client)s script '.*' not found or unable to stat
不匹配
[client 111.111.111.111:51008] script '/srv/www/htdocs/wwwuni/fileadmin/Dokumente/index.php' not found or unable to stat
修改定义后问题解决
_apache_error_client 在 apache-common.conf
到 _apache_error_client = [[^]]*] [(:error|\S+:\S+)]( [pid \d+])? [客户端(:\d{1,5})?]
为什么下面fail2ban regex
failregex = ^%(_apache_error_client)s ((AH001(28|30): )?File does not exist|(AH01264: )?script not found or unable to stat).*$
^%(_apache_error_client)s script '.*' not found or unable to stat
不匹配
[client 111.111.111.111:51008] script '/srv/www/htdocs/wwwuni/fileadmin/Dokumente/index.php' not found or unable to stat
修改定义后问题解决 _apache_error_client 在 apache-common.conf 到 _apache_error_client = [[^]]*] [(:error|\S+:\S+)]( [pid \d+])? [客户端(:\d{1,5})?]