安装 fail2ban 并修改其配置后,无论何时我将操作设置为任何内容,它都无法启动...这是错误,但请注意,$(action_mwl)s
对于我设置的任何操作,它都会有所不同。
操作系统是Centos 7,带有防火墙。
-- Unit fail2ban.service has begun starting up.
מרץ 17 13:49:23 void fail2ban-client[28202]: ERROR Error in action definition $(action_mwl)s
מרץ 17 13:49:23 void fail2ban-client[28202]: ERROR Errors in jail 'sshd'. Skipping...
מרץ 17 13:49:23 void systemd[1]: fail2ban.service: control process exited, code=exited status=255
מרץ 17 13:49:23 void systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has failed.
--
-- The result is failed.
מרץ 17 13:49:23 void systemd[1]: Unit fail2ban.service entered failed state.
מרץ 17 13:49:23 void systemd[1]: fail2ban.service failed.
מרץ 17 13:49:23 void systemd[1]: fail2ban.service holdoff time over, scheduling restart.
מרץ 17 13:49:23 void systemd[1]: start request repeated too quickly for fail2ban.service
מרץ 17 13:49:23 void systemd[1]: Failed to start Fail2Ban Service.
-- Subject: Unit fail2ban.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
我的设置是:
[DEFAULT]
# Ban hosts for 24 hours, if 3 attempts fail in 30 min:
bantime = 86400
findtime = 1800
# Email for banning notifications
destemail = [email protected]
sendername = Fail2Ban
mta = sendmail
action = $(action_mwl)s
[sshd]
enabled = true
我希望我没有做任何太愚蠢的事情,提前感谢!