我安装了服务器FAIL2BAN,现在无法理解问题所在。
fail2ban-regex 找不到正则表达式,即使很简单:
fail2ban-regex "192.168.1.1" "<HOST>$"
和答案
Running tests
=============
Use regex line : <HOST>$
Use single line: 192.168.1.1
Results
=======
Failregex
|- Regular expressions:
| [1] <HOST>$
|
`- Number of matches:
[1] 0 match(es)
Ignoreregex
|- Regular expressions:
|
`- Number of matches:
Summary
=======
Sorry, no match
Look at the above section 'Running tests' which could contain important
information.
请告诉我可能是蜜蜂错误吗?