gpt4 book ai didi

apache - fail2ban apache-auth 过滤器未检测到失败的密码

转载 作者:行者123 更新时间:2023-12-04 14:12:08 24 4
gpt4 key购买 nike

我无法让 fail2ban 检测失败的 apache-auth 尝试

过滤器看起来像这样:

^%(_apache_error_client)s (AH01617: )?user .* authentication failure for "\S*": Password Mismatch$

^%(_apache_error_client)s (AH01618: )?user .* not found(: )?\S*\s*$

以及出现的错误:
[Tue Dec 23 13:41:45.870693 2014] [auth_basic:error] [pid 2818] [client 97.171.82.123:91131] AH01617: user miati: authentication failure for "/test/file.html": Password Mismatch, referer: https://example.org/test/file.html
[Tue Dec 23 13:41:45.870693 2014] [auth_basic:error] [pid 2818] [client 97.171.82.123:91131] AH01617: user miati: authentication failure for "/test/file.html": Password Mismatch, referer: https://example.org/test/file.html

两者都不能正常工作。我想让它们重新编写,以便它们可以工作,但我无法弄清楚过滤器是如何工作的,而且谷歌搜索并没有让我到任何地方。大多数指南都假定我了解正则表达式,而我不了解。

任何人都可以解释(或链接到)过滤器中这些参数的含义,以便我可以自己修改它?

最佳答案

我在使用 Fail2Ban v0.8.11 时遇到了同样的问题,最初在您发布后大约 13 小时找到了您的帖子。我最终的解决方案是使用更多电流 apache-common.confapache-auth.conf来自官方 GitHub 存储库的文件。它现在捕获登录尝试,然后自动禁止 IP 地址,尽管我使用的是 ufw对于实际禁止/取消禁止。

关于apache - fail2ban apache-auth 过滤器未检测到失败的密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27628691/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com