powershell-block-windows-attack
powershell-block-windows-attack copied to clipboard
IP limit of 1000 per firewall rule
Hi,
Thanks for the script - its really useful for me.
I just spotted lots of errors when the script ran on my server. Looking into it further it was due to array out of bounds when adding a new IP to the list. Further still and it looks like there is a maximum of 1,000 IPs which can be added to the scope of a firewall rule.
I am not good with powershell, but I created a BlockAttackers2 rule, pulled its contents into $ar2, appended it to $arRemote and then wrote the exclusions to $ar2 instead.
Looks like it too me about 3 months to hit 1000 blocked IPs !
Matt