Hi there,
I was not able to find a solution for my specific problem. I just installed fail2ban service in my OMV (v 6.9.15-2) and activated the pre-defined jail nginx-404.
So far so good - it's working.
But when I add a new jail I get the error as you can see in the title of the thread. Can only be seen in fail2ban log via commad line. In OMV-GUI it looks OK.
Only hint is when email is sent that only the nginx-404 jail is started.
2024-05-06 12:42:41,751 fail2ban.server [42746]: INFO --------------------------------------------------
2024-05-06 12:42:41,751 fail2ban.server [42746]: INFO Starting Fail2ban v0.11.2
2024-05-06 12:42:41,752 fail2ban.observer [42746]: INFO Observer start...
2024-05-06 12:42:41,762 fail2ban.database [42746]: INFO Connected to fail2ban persistent database '/var/lib/fail2ban/fail2ban.sqlite3'
2024-05-06 12:42:41,763 fail2ban.transmitter [42746]: ERROR Jail 'Nextcloud' skipped, because of wrong configuration: Unable to read the filter 'Nextcloud'
2024-05-06 12:42:41,764 fail2ban.jail [42746]: INFO Creating new jail 'nginx-404'
2024-05-06 12:42:41,768 fail2ban.jail [42746]: INFO Jail 'nginx-404' uses poller {}
2024-05-06 12:42:41,768 fail2ban.jail [42746]: INFO Initiated 'polling' backend
2024-05-06 12:42:41,770 fail2ban.filter [42746]: INFO maxRetry: 3
2024-05-06 12:42:41,771 fail2ban.filter [42746]: INFO findtime: 604800
2024-05-06 12:42:41,771 fail2ban.actions [42746]: INFO banTime: -1
2024-05-06 12:42:41,772 fail2ban.filter [42746]: INFO Added logfile: '/var/log/fail2ban.log' (pos = 4529, hash = 7ca0b5073b3ed34d846be143333e541a48b356f5)
2024-05-06 12:42:41,774 fail2ban.jail [42746]: INFO Jail 'nginx-404' started
The config files are there:
root@omv:/etc/fail2ban/jail.d# ls -l
insgesamt 28
-rw-r--r-- 1 root root 98 6. Mai 12:42 openmediavault-36b96e6c-9187-4b93-b0c6-05c6d3e29dc3.conf.disabled
-rw-r--r-- 1 root root 108 6. Mai 12:42 openmediavault-40e58b78-848c-4488-987d-2da577df78de.conf
-rw-r--r-- 1 root root 121 6. Mai 12:42 openmediavault-4e3a2d25-326c-4dc8-bc05-22f303a62b75.conf
-rw-r--r-- 1 root root 104 6. Mai 12:42 openmediavault-59650e01-5e07-4076-9b15-ce352f4b4356.conf.disabled
-rw-r--r-- 1 root root 118 6. Mai 12:42 openmediavault-5f2b2d25-726c-5dc8-ac05-79f303a62b35.conf.disabled
-rw-r--r-- 1 root root 139 6. Mai 12:42 openmediavault-6e3a7d25-326c-4dc8-bc05-63f303a62b21.conf.disabled
-rw-r--r-- 1 root root 122 6. Mai 12:42 openmediavault-7e9a7d35-326c-4dc8-bc05-35f308a62b78.conf.disabled
What can I do to add customized jails?
Thanks for any hint.
Regards