fail2ban: 複数の failregex を組み合わせるにはどうすればいいですか?

fail2ban: 複数の failregex を組み合わせるにはどうすればいいですか?

failregexファイルに複数の行を追加する際に問題が発生していますjail.local。 1 行の場合は機能しますが、2 行の場合は機能しません。

これは私の jail.local 設定です:

[sshd]
enabled = true
logpath = %(sshd_log)s
port = 22
banaction = iptables-multiport
mode = aggressive
failregex = %(known/failregex)s
            ^Bad protocol version identification '.*' from <HOST>
failregex = %(known/failregex)s 
            ^runcloud\[\d+\]: echo: http: TLS handshake error from <ADDR>:\d+

答え1

分かりました。2番目を削除しますfailregex = %(known/failregex)s:

failregex = %(known/failregex)s ^runcloud[\d+] からのプロトコル バージョン識別 '.*' が不正です: echo: http: TLS ハンドシェイク エラー: :\d+

関連情報