jlehtone wrote: ↑2019/01/08 08:57:51
See "systemctl status fail2ban.service" and "journalctl -xe" for details.
Code: Select all
# systemctl status fail2ban.service
● fail2ban.service - Fail2Ban Service
Loaded: loaded (/usr/lib/systemd/system/fail2ban.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Tue 2019-01-08 11:28:47 +0330; 1h 7min ago
Docs: man:fail2ban(1)
Process: 4780 ExecStart=/usr/bin/fail2ban-client -x start (code=exited, status=255)
Jan 08 11:28:47 localhost.localdomain systemd[1]: Failed to start Fail2Ban Service.
Jan 08 11:28:47 localhost.localdomain systemd[1]: Unit fail2ban.service entered failed state.
Jan 08 11:28:47 localhost.localdomain systemd[1]: fail2ban.service failed.
Jan 08 11:28:47 localhost.localdomain systemd[1]: fail2ban.service holdoff time over, scheduling restart.
Jan 08 11:28:47 localhost.localdomain systemd[1]: Stopped Fail2Ban Service.
Jan 08 11:28:47 localhost.localdomain systemd[1]: start request repeated too quickly for fail2ban.service
Jan 08 11:28:47 localhost.localdomain systemd[1]: Failed to start Fail2Ban Service.
Jan 08 11:28:47 localhost.localdomain systemd[1]: Unit fail2ban.service entered failed state.
Jan 08 11:28:47 localhost.localdomain systemd[1]: fail2ban.service failed.
Code: Select all
# journalctl -xe
--
-- Unit fail2ban.service has begun starting up.
Jan 08 12:36:45 localhost.localdomain fail2ban-client[7309]: ERROR Found no accessible config files for 'action.d/sendmail-whois-lines' under /etc/fail2
Jan 08 12:36:45 localhost.localdomain fail2ban-client[7309]: ERROR Error in action definition sendmail-whois-lines[name=sshd, sender="fail2ban@example.com"
Jan 08 12:36:45 localhost.localdomain fail2ban-client[7309]: ERROR Errors in jail 'sshd'. Skipping...
Jan 08 12:36:45 localhost.localdomain systemd[1]: fail2ban.service: control process exited, code=exited status=255
Jan 08 12:36:45 localhost.localdomain 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.
Jan 08 12:36:45 localhost.localdomain systemd[1]: Unit fail2ban.service entered failed state.
Jan 08 12:36:45 localhost.localdomain systemd[1]: fail2ban.service failed.
Jan 08 12:36:45 localhost.localdomain systemd[1]: fail2ban.service holdoff time over, scheduling restart.
Jan 08 12:36:45 localhost.localdomain systemd[1]: Stopped Fail2Ban Service.
-- Subject: Unit fail2ban.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit fail2ban.service has finished shutting down.
Jan 08 12:36:45 localhost.localdomain systemd[1]: start request repeated too quickly for fail2ban.service
Jan 08 12:36:45 localhost.localdomain 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.
Jan 08 12:36:45 localhost.localdomain systemd[1]: Unit fail2ban.service entered failed state.
Jan 08 12:36:45 localhost.localdomain systemd[1]: fail2ban.service failed.
I guess it is because of "sendmail" and according to
https://support.plesk.com/hc/en-us/arti ... mail-whois "sendmail-whois.conf" is missing. How can I configure it?
I installed "Fail2ban-sendmail" too.
Thanks.