failregex
我在文件中添加多行时遇到问题jail.local
。如果我有一根线,它会起作用,但如果我有两根线,它就不起作用。
这是我的 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+
想通了,删除第二个
failregex = %(known/failregex)s
:failregex = %(known/failregex)s ^Bad protocol version identification '.*' from ^runcloud[\d+]: echo: http: TLS 握手错误来自 :\d+