May 25, 20251 yr I wonder how fail2ban is really banning ips in unraid with this config.[npm]backend = autoenabled = trueport = 80,443protocol = allfilter = npmmaxretry = 5ignoreip = 127.0.0.1/8 192.168.50.0/24action = iptables-multiport[blocktype=DROP]bantime = 48hfindtime = 400mlogpath = /var/log/default-host_*.log/var/log/proxy-host-*.logbanaction = ufwIs that the right way or do i have to use another config? Edited May 25, 20251 yr by TimTaylor
May 26, 20251 yr That looks like a jail. Where is Fail2ban installed on Unraid? It's not on my install. At least, on my machine it's not in the typical install directory ie: /etc and there are no log files for it either.
May 27, 20251 yr Author Its a docker container (crazymax/fail2ban:latest), and it reads the NPM logs.It also seems to detect something but that jail thing i dont understand...how can the docker set the bans to the real unraid system. I think that config action = iptables-multiport[blocktype=DROP] and banaction = ufw seems to be the problem.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.