root@FreePBX:/etc/fail2ban# /etc/init.d/fail2ban restart [....] Restarting fail2ban (via systemctl): fail2ban.serviceJob for fail2ban.service failed because the control process exited with error code. See "systemctl status fail2ban.service" and "journalctl -xe" for details. failed!
root@FreePBX:/var/log/asterisk# ls -l 合計 44588 -rw-r----- 1 root root 0 4月 4 00:07 backup.log -rw-rw-r-- 1 asterisk asterisk 400 4月 1 00:00 backup.log.1 drwxrwxr-x 2 asterisk asterisk 4096 3月 27 20:29 cdr-csv drwxrwxr-x 2 asterisk asterisk 4096 3月 27 20:29 cdr-custom drwxrwxr-x 2 asterisk asterisk 4096 3月 27 20:29 cel-custom -rw-r----- 1 root root 6012 4月 9 09:30 freepbx.log -rw-rw-r-- 1 asterisk asterisk 12015461 4月 4 00:07 freepbx.log.1 -rw-rw-r-- 1 asterisk asterisk 493 3月 27 21:08 freepbx.log.2.gz -rw-r----- 1 root root 0 4月 4 00:07 freepbx_security.log -rw-rw-r-- 1 asterisk asterisk 155 3月 28 11:03 freepbx_security.log.1 -rw-r----- 1 root root 0 4月 4 00:07 full -rw-rw-r-- 1 asterisk asterisk 33579365 4月 4 00:07 full.1 -rw-rw-r-- 1 asterisk asterisk 0 3月 30 06:54 h323_log -rw-r----- 1 root root 0 4月 4 00:07 queue_log -rw-rw-r-- 1 asterisk asterisk 5410 4月 3 19:54 queue_log.1 -rw-rw-r-- 1 asterisk asterisk 58 3月 27 21:11 queue_log.2.gz
エラーの原因
vi /etc/asterisk/jail.conf
[asterisk] port = 5060,5061 action_ = %(default/action_)s[name=%(__name__)s-tcp, protocol="tcp"] %(default/action_)s[name=%(__name__)s-udp, protocol="udp"] logpath = /var/log/asterisk/messages maxretry = 10
上記のlogpath =がディストごとに相違しているのが原因
コメント