on-internet
← Community

[云计算] 三台机器装 fail2ban:端口对不上,封了也白封

V2EX ·

fail2ban 装上不等于封住,要三件事齐:jail 里的端口必须等于 SSH 的实际端口、日志来源必须对(没有 /var/log/auth.log 就 backend=systemd)、首封要实测验证过。主力机历史上累计封过近百次,却因为 jail 端口默认 22、而 SSH 根本不在 22 上,很可能一次都没挡住真正的 SSH 端口。过程写在这: https://zhetengbiji.blogspot.com/2026/10/fail2ban-input.html

Comments

Sign in or sign up to comment and upvote.

No comments yet.