Fail2ban does not start initially
Posted: 22 Oct 2024 00:16
After initial installation of eFa 5.0, Fail2ban reports not able to start.
This is simply due to the mailwatch jail log file not existing yet. Fail2ban does not work until the log file is created (automatically when a php-fpm error log is recorded) and the server rebooted or Fail2ban service started manually.
Would it be possible to add this quick file create or a simple touch to the end of the eFa 5.0 installation script:
echo 'Initial log file creation (eFA setup)' > /var/log/php-fpm/www-error.log
This is simply due to the mailwatch jail log file not existing yet. Fail2ban does not work until the log file is created (automatically when a php-fpm error log is recorded) and the server rebooted or Fail2ban service started manually.
Would it be possible to add this quick file create or a simple touch to the end of the eFa 5.0 installation script:
echo 'Initial log file creation (eFA setup)' > /var/log/php-fpm/www-error.log