Soon after I clear banned IP list a few hours later my IP goes back to the banned list so I am always blocked from all websites hosted by hestia. Anyway to stop this from happening?
You should figure out why fail2ban is repeatedly triggering a firewall rule to block your ip.
For now, you could add your ip to the whitelist in /etc/fail2ban/jail.d/whitelist.local so fail2ban will ignore it.
❯ cat /etc/fail2ban/jail.d/whitelist.local
[DEFAULT]
ignoreip = here.your.ip
Restart Fail2Ban to apply the change.
systemctl restart fail2ban
2 Likes
whitelist.local is not in my jail.d folder it is empty
You must create it and add the content.
1 Like
OK and what if I want to add an IP range like for example all IPs on 204.152.xxx.xxx
[DEFAULT]
ignoreip = 204.152.0.0/16
1 Like
OK done. Now I will monitor to see if it works. Much thanks for your help.
1 Like
Didn’t work. My IP is back in the banned list ![]()
Show the output of:
cat /etc/fail2ban/jail.d/whitelist.local
Did you restart fail2ban?
2 Likes
Screenshot by Lightshot I am unable to do so. This remains off even when I restart
Show the output of these commands:
cat -A /etc/fail2ban/jail.d/whitelist.local
systemctl status fail2ban --no-pager -l
2 Likes