I have
rocky 8 PHP 8.1 Apache/2.4.37 (rocky)
Firewalld blocking thousands and thousands of IP's
enable with firewall-cmd --permanent --zone=block --add-source=ipset:block_ips
When I reboot the server the firewalld blocks the httpd server, and I can't access to the webpage.
My solution is to restart the firewall and everything is ok again.
The firewalld is enabled and shouldn't be necessary to restart again the firewalld on every reboot, but I need to do that, any ideas on how to solve this?
EDIT:
1- Running fail2ban;
2- The firewall-cmd --list-all doesn't have any kind of useful information.;
3- On Ipset I made: firewall-cmd --permanent --new-ipset=block_countries --type=hash:net --option=family=inet --option=hashsize=4096 --option=maxelem=999999
firewall-cmd --permanent --zone=block --add-source=ipset:block_countries>
firewall-cmd --permanent --ipset=block_countries --add-entries-from-file=/uilas/blacklist/block_countries