Windows GeoFiltering the cheap and hacky way

I started from this post and moved the file downloads into powershell

rem
rem http://www.gregsitservices.com/ip-security/ip-security-package.zip

wget “https://www.ipdeny.com/ipblocks/data/aggregated/cn-aggregated.zone” -outfile “cn-aggregated.zone”
wget “https://www.ipdeny.com/ipblocks/data/aggregated/ru-aggregated.zone” -outfile “ru-aggregated.zone”
wget “https://www.ipdeny.com/ipblocks/data/aggregated/ir-aggregated.zone” -outfile “ir-aggregated.zone”
wget “https://www.ipdeny.com/ipblocks/data/aggregated/kp-aggregated.zone” -outfile “kp-aggregated.zone”
wget “https://www.ipdeny.com/ipblocks/data/aggregated/kr-aggregated.zone” -outfile “kr-aggregated.zone”

PowerShell.exe -ExecutionPolicy Bypass
.\Import-Firewall-Blocklist.ps1 -inputfile cn-aggregated.zone
.\Import-Firewall-Blocklist.ps1 -inputfile ru-aggregated.zone
.\Import-Firewall-Blocklist.ps1 -inputfile ir-aggregated.zone
.\Import-Firewall-Blocklist.ps1 -inputfile kp-aggregated.zone
.\Import-Firewall-Blocklist.ps1 -inputfile kr-aggregated.zone
PowerShell.exe -ExecutionPolicy Restricted

this is not a complete project, had to move on to other priorities but checkout the SANS article here

sduncan