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 アドレスが保持されます。デモ