Powershell Scripting : Windows Firewall Block by Country
Powershell Scripting : Windows Firewall Block by Country
https://www.itlumberjack.com/microsoft/21-windows-firewall-block-by-country
This script is designed to place an extra layer of security on Windows machines. Servers running IIS, Apache, or Nginx are extremely vulnerable since they require ports 80 and 443 to be open to the internet.
The script pulls a list of IP addresses from www.ipdeny.com . IP Deny provides a list of IP ranges for each country.
The script can be run as a task. This will help in making sure that the IP addresses being blocked are current. Before scheduling a task please be sure to review IP Deny's usage policy. https://www.ipdeny.com/usagelimits.php
Please note that this should not be your first line of defense in blocking unwanted inbound traffic. Best practice would be to block the traffic on an edge device such as a hardware firewall. In the event, the attacker is able to get past the hardware firewall, this would serve as an extra layer of defense.
Comments
Post a Comment