
Fail2ban을 실행하는 Debian Squeezy 웹서버에 문제가 있습니다. 때때로 fall2ban은 access.log 누락으로 인해 작동을 멈춥니다.
fail2ban.comm : WARNING Invalid command: ['set', 'http-get-dos', 'addlogpath', '/var/www/foo.bar/log/access.log']
차단을 다시 시작하려면 문제가 있는 파일을 터치하고 Fail2ban을 다시 시작해야 합니다.
어떠한 제안?
[편집] logrotate.conf를 추가했습니다.
# see "man logrotate" for details
# rotate log files weekly
weekly
# keep 4 weeks worth of backlogs
rotate 4
# create new (empty) log files after rotating old ones
create
# uncomment this if you want your log files compressed
#compress
# packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
missingok
monthly
create 0664 root utmp
rotate 1
}
/var/log/btmp {
missingok
monthly
create 0660 root utmp
rotate 1
}
# system-specific logs may be configured here