Blacklisting Countries

On Rocky/RedHat Linux

Blacklisting countries relatively easily using the bash script created below. It is however important to consider where blacklisting countries is in the iptables chain. At present this is only setup using bash for IPTables however a version for Windows Firewall with Advanced Security using Powershell is in the works. After that I will get one up for all you folks moving to Firewalld. This script is dependent on https://ipdeny.com which is a free service that runs out of Amsterdam Nethrelands. It is also dependent on IPTables as it builds rule sets in ipset for each country.