Blocking countries other than the US in IPTables
Courtesy of Kyle! Pulls all ISO country codes except for the US and populates iptables with ALL ranges in those countries automatically. Setup a cron job (/etc/crontab) to run every week: @weekly /usr/local/bin/isoCodeBlockIptables.sh Put the isoCodeBlockIptables.sh in /usr/local/bin/ and chmod +x it. The script first backups up the existing config to /backup/iptables-last.txt first. After it [...]