Hello I White listed an IP in the UI by adding a rule and choosing
IP Address: 18.104.22.168
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.
My smtp server bans my webservers because of fail2ban.
Webserver hosting WordPress -> Conects via SMTP -> Mail server (Hestia) -> Send emails
When a website has a misconfigured plugin, during test or at any point, the whole server gets banned. And no other Website can send emails.
I would like to whitelist my webservers in my Mail server to prevent this from happening.
This is what I tried
ignoreip = 195.114.211.xxx 5.56.63.xxx 5.56.62.xxx 185.37.226.xx…
@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 = 22.214.171.124 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.