fail2ban
Debian 12 서버에서 부팅 할 수 없습니다 . 다음 오류가 발생합니다.
2024-04-01 23:51:42,973 fail2ban [16176]: ERROR NOK: ("Failed to initialize any backend for Jail 'sshd'",)
2024-04-01 23:51:42,973 fail2ban.server [16176]: INFO Shutdown in progress...
2024-04-01 23:51:42,973 fail2ban.observer [16176]: INFO Observer stop ... try to end queue 5 seconds
2024-04-01 23:51:42,993 fail2ban.observer [16176]: INFO Observer stopped, 0 events remaining.
2024-04-01 23:51:43,033 fail2ban.server [16176]: INFO Stopping all jails
2024-04-01 23:51:43,034 fail2ban.database [16176]: INFO Connection to database closed.
2024-04-01 23:51:43,234 fail2ban.server [16176]: INFO Exiting Fail2ban
나는 로그가 sshd
기록될 것이라는 것을 알고 systemd
있으며 이에 따라 감옥을 구성했습니다 sshd
.
[sshd]
backend = systemd
enabled = true
port = ssh
logpath = %(sshd_log)s
maxretry = 3