← All Kali Issues
Fail2ban
Not blocking attacks
C Configuration
Medium
🔴 Error Message
Fail2ban running but not banning IPs
📖 What This Means
Jail not enabled or filter not matching.
🔧 Step-by-Step Fix
- Check status: sudo fail2ban-client status
- Enable jail: in /etc/fail2ban/jail.local set enabled = true
- Test regex: fail2ban-regex /var/log/auth.log /etc/fail2ban/filter.d/sshd.conf
- Restart: sudo systemctl restart fail2ban