-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fail2ban is registering but not blocking specific ip address #108
Comments
Exactly the same for me. Fail2ban registers it, but the block doesn't work. Both with chain = DOCKER-USER and chain = INPUT. Also the latest release 0.11.2-r4 makes no difference. |
Hi 786534786 Few weeks ago i finally found the solution to solve the problem. ... This is because Docker with rootless mode uses RootlessKit’s builtin port driver by default. The source IP addresses can be propagated by creating ~/.config/systemd/user/docker.service.d/override.conf with the following content: [Service] And then restart the daemon: This solved my problem :) Greetings |
Thank you FDF1337 for your detailed reply. Regardless of your solution. It is now also clear to me that if docker is not running with rootless mode, it also makes no difference. While this was previously the case. |
Hello @786534786, Have you been able to fix the issue? |
No unfortunately not yet. |
Following, have a very similar issue I opened today within the Vaultwarden github. |
I have the same problem but I don't understand why with SSH it works correctly. |
have too on synology |
Behaviour
Steps to reproduce this issue
Expected behaviour
Actual behaviour
Configuration
docker --version
):Docker version 20.10.12, build e91ed57
docker-compose --version
) :docker-compose version 1.29.2, build unknown
Raspian/armv7l
uname -a
):Linux raspberrypi 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l GNU/Linux
docker-compose.yml
,.env
, ...docker-compose.yml
Docker info
Logs
fail2ban.log
docker logs fail2ban
I'm not sure if i choosed the correct setting for F2B_IPTABLES_CHAIN (INPUT) as i don't understand it well. But i also tried with the value "DOCKER-USER" but unfortunately without success.
Furthermore one really important thing is to mention, that docker is running in rootless mode.
As till now, i was not able to install the plugin https://github.com/mastercactapus/caddy-proxyprotocol i still get the private ip address from the docker host itself when trying to login with wrong credentials which will cause a DOS at this time.
But at the end, i would like to ban the right ip address which i'll try to implement when i could fixed this issue.
Thank you for your support!
The text was updated successfully, but these errors were encountered: