failregex
我在文件中添加多行時遇到問題jail.local
。如果我有一根線,它可以工作,但如果我有兩條線,它就不起作用。
這是我的 jam.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
想通了,刪除第二個failregex = %(known/failregex)s
:
failregex = %(known/failregex)s ^來自 ^runcloud[\d+] 的錯誤協定版本標識「.*」:回顯:http:來自 :\d+ 的 TLS 握手錯誤