Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 glpi,我想用 fail2ban 监控失败的登录尝试。日志文件如下:
如果登录尝试失败并且我想用fail2ban 禁止IP,我需要此日志文件的正则表达式规则。
有人可以帮助我吗?
谢谢!
用这个:failed login for \w+ from IP (.*)
failed login for \w+ from IP (.*)
现在您的匹配组 1 拥有失败的 IP 地址。演示