You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi use NPM (docker) and it works well. I have installed fail2ban with docker too but I have a problem. The path to the log files is good but fail2ban try to ban a ip address I have this message :
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi use NPM (docker) and it works well. I have installed fail2ban with docker too but I have a problem. The path to the log files is good but fail2ban try to ban a ip address I have this message :
[npm-docker] Ban 195.242.242.30
2025-02-04 16:26:29,549 fail2ban.utils [1]: ERROR 7fdd32a05930 -- exec: { iptables-nft -w -C f2b-npm-docker -j RETURN >/dev/null 2>&1; } || { iptables-nft -w -N f2b-npm-docker || true; iptables-nft -w -A f2b-npm-docker -j RETURN; }
for proto in $(echo 'tcp' | sed 's/,/ /g'); do
{ iptables-nft -w -C DOCKER-USER -p $proto -j f2b-npm-docker >/dev/null 2>&1; } || { iptables-nft -w -I DOCKER-USER -p $proto -j f2b-npm-docker; }
done
2025-02-04 16:26:29,549 fail2ban.utils [1]: ERROR 7fdd32a05930 -- stderr: 'iptables: No chain/target/match by that name.'
2025-02-04 16:26:29,549 fail2ban.utils [1]: ERROR 7fdd32a05930 -- returned 1
2025-02-04 16:26:29,549 fail2ban.actions [1]: ERROR Failed to execute ban jail 'npm-docker' action 'iptables-nft' info 'ActionInfo({'ip': '195.242.242.30', 'family': 'inet4', 'fid': <function Actions.ActionInfo. at 0x7fdd329d5bc0>, 'raw-ticket': <function Actions.ActionInfo. at 0x7fdd329d6340>})': Error starting action Jail('npm-docker')/iptables-nft: 'Script error'
so the ip is still able to access my server and is not banned. How can I solve this issue ?
Thx
Beta Was this translation helpful? Give feedback.
All reactions