Fail2ban not starting on fresh ubuntu server 18.04 but when tried same with vultr it’s working when now in scaleway it’s not working
fail2ban.service - Fail2Ban Service
Loaded: loaded (/etc/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sat 2019-10-12 18:03:52 UTC; 1min 8s ago
Docs: man:fail2ban(1)
Process: 1214 ExecStart=/usr/bin/fail2ban-server -xf start (code=exited, status=255)
Process: 1147 ExecStartPre=/bin/mkdir -p /var/run/fail2ban (code=exited, status=0/SUCCESS)
Main PID: 1214 (code=exited, status=255)
Oct 12 18:03:51 ###### systemd[1]: Starting Fail2Ban Service…
Oct 12 18:03:51 ###### systemd[1]: Started Fail2Ban Service.
Oct 12 18:03:52 ###### fail2ban-server[1214]: Found no accessible config files for ‘filter.d/sshd-ddos’ under /etc/fail2ban
Oct 12 18:03:52 ###### fail2ban-server[1214]: Unable to read the filter ‘sshd-ddos’
Oct 12 18:03:52 ###### fail2ban-server[1214]: Errors in jail ‘ssh-ddos’. Skipping…
Oct 12 18:03:52 ###### fail2ban-server[1214]: No file(s) found for glob /var/log/auth.log
Oct 12 18:03:52 ###### fail2ban-server[1214]: Failed during configuration: Have not found any log file for sshd jail
Oct 12 18:03:52 ###### fail2ban-server[1214]: Async configuration of server failed
Oct 12 18:03:52 ###### systemd[1]: fail2ban.service: Main process exited, code=exited, status=255/n/a
Oct 12 18:03:52 ###### systemd[1]: fail2ban.service: Failed with result ‘exit-code’.
I followed the article but i want to stick with default vitualmin fail2ban configuration, this everything was added automatically by this following command
Do you have the following file /etc/fail2ban/filter.d/sshd-ddos.conf ? The log snippet you posted,
Oct 12 18:03:52 ###### fail2ban-server[1214]: Found no accessible config files for ‘filter.d/sshd-ddos’ under /etc/fail2ban
suggests you don’t. You can look for the file and it’s contents thru Webmin if you’d prefer that: “Webmin - Networking - Fail2Ban Intrusion Detector - Edit Config File” Pull the drop down to look for the file and Click OK to see the contents.
It should be in the drop down - perhaps your’s isn’t which might explain the log file error about not finding a .conf file. You can also find the /etc/fail2ban/jail.local file thru the drop down in Edit Files.
Yes your right i couldn’t find the file, but when i checked the same in vultr server there also file not exists but in vultr server fail2ban running properly