我在 ubuntu 16 上安装了 fail2ban,我也有 ufw。我将 jail.conf 复制到 /etc/fail2ban 中的 jail.local。在此之后,我尝试启动 fail2ban,但在日志中出现以下错误(使用命令systemctl status fail2ban.service):
fail2ban.service: Control process exited, code=exited status=255
abcdefgh systemd[1]: Failed to start Fail2Ban Service.
fail2ban.service: Unit entered failed state.
关于如何进一步解决此问题的任何想法?
更新 我对 jail.conf 文件所做的更改是针对 sshd 部分的:
[sshd]
enabled = true
port = valid-ssh-port (this is a number but not the default port)
filter = sshd
logpath = /var/log/auth.log
maxretry = 5