小编AJ.*_*AJ.的帖子

Fail2Ban SASL 过滤器未命中失败的登录

我在我的邮件服务器上使用fail2ban。我今天早上发现通过 SMTP 有大约 5000 次失败的登录尝试(在 1 小时内)没有被我的 sasl 过滤器检测到。这是 /var/log/mail.log 中条目的示例

Jan 25 04:39:56 ***** postfix/smtpd[23828]: warning: 114-32-231-17.HINET-IP.hinet.net[114.32.231.17]: SASL LOGIN authentication failed: authentication failure
Run Code Online (Sandbox Code Playgroud)

这是我的(未修改的)fail2ban 的 sasl 过滤器定义:

# Fail2Ban configuration file
#
# Author: Yaroslav Halchenko
#
# $Revision: 728 $
#

[Definition]

# Option: failregex
# Notes.: regex to match the password failures messages in the logfile. The
#          host must be matched by a group named "host". The tag "<HOST>" can
#          be used for …
Run Code Online (Sandbox Code Playgroud)

regex sasl fail2ban

3
推荐指数
1
解决办法
5923
查看次数

标签 统计

fail2ban ×1

regex ×1

sasl ×1