Hi, I'm trying to set up Fail2ban on my server. I've plugged Caddy's logs into Fail2ban using the remotelogs volume mapping and am trying to set up the jails so that Fail2ban will read Caddy's logs. However, I'm having a bit of trouble having Fail2ban read the jail configuration file.
The README states not to set up configuration files as .confs as they will be wiped between container restarts, so I copied the jail.d/nginx-bad-request.conf to jail.d/caddy.local. Then, in jail.local, I've added the following lines:
However, when Fail2ban loads, the jail is not shown in fail2ban-client status. What am I doing wrong here?
unRAID 6.11.5
If I'm doing something wrong, can the relevant portion be added to the README on how to properly add user-defined jail files in jail.d and have it be loaded by jail.local?
Hi, I'm trying to set up Fail2ban on my server. I've plugged Caddy's logs into Fail2ban using the
remotelogs
volume mapping and am trying to set up the jails so that Fail2ban will read Caddy's logs. However, I'm having a bit of trouble having Fail2ban read the jail configuration file.The README states not to set up configuration files as
.conf
s as they will be wiped between container restarts, so I copied thejail.d/nginx-bad-request.conf
tojail.d/caddy.local
. Then, injail.local
, I've added the following lines:However, when Fail2ban loads, the jail is not shown in
fail2ban-client status
. What am I doing wrong here?unRAID 6.11.5
If I'm doing something wrong, can the relevant portion be added to the README on how to properly add user-defined jail files in
jail.d
and have it be loaded byjail.local
?