# Fail2Ban works but iptables not banning

**URL:** <https://vaultwarden.discourse.group/t/fail2ban-works-but-iptables-not-banning/4281>\
**Category:** Help\
**Created:** [January 3, 2025, 5:37pm UTC](https://vaultwarden.discourse.group/t/fail2ban-works-but-iptables-not-banning/4281 "2025-01-03T17:37:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicolazon](https://avatars.discourse-cdn.com/v4/letter/n/e79b87/32.png) [@Nicolazon](https://vaultwarden.discourse.group/u/Nicolazon)\
**Post date:** [January 3, 2025, 5:37pm UTC](https://vaultwarden.discourse.group/t/fail2ban-works-but-iptables-not-banning/4281/1 "2025-01-03T17:37:13Z")

</div>

Hello,

I have a problem: I currently have vaultwarden installed on a docker and I have fail2ban hard-coded on my machine (Debian 12). I have configured fail2ban and it detects the IP and adds it to the “f2b-vaultwarden” string. However, the IP is not banned and the user still has access to the login page. How can I fix this, please? Here’s my IPTABLES

 ![Iptables](https://global.discourse-cdn.com/free1/uploads/vaultwarden/original/2X/7/7d2dc7b7657eb69c4353bc2a3745e1b2bb89d714.png)
