IP keeps getting Banned even though its whitelisted

Hello I White listed an IP in the UI by adding a rule and choosing
Action:allow
Protocol: TCP
Port: 1-1024
IP Address: 33.44.56.33
Service (Optional): I put the clients name here

even though I have this sometimes it shows up in the banned IP list and no one can login to their mail at that location.

Am I doing this right? thanks

PS: The IP is fake

You are doing it wrong.

You have to whitelist the ip in fail2ban otherwise fail2ban will insert a rule with higher priority than your whitelist in iptables.

2 Likes

Hi @jlguerrero That worked wonders! thanks so much, I can’t believe I was doing it wrong for so long and all I had to do was edit /etc/fail2ban/jail.local add [DEFAULT] at the top then on the second line add ignoreip = 44.33.44.22 Save it. Restart fail2ban and it just worked!!! =]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.