I think fail2ban is the wrong tool for this. If you want to blanket block or accept, you should just add the proper rules to iptables/firewalld. fail2ban is to detect attempts and block after a certain number of failures for a specific amount of time.
You want to do the opposite of this: https://www.linode.com/community/questions/11143/top-tip-firewalld-and-ipset-country-blacklist Thanks, Richard
_______________________________________________ Fail2ban-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fail2ban-users
