October 11, 20215 yr Administrator Descarcati scriptul PowerShell, Import-Firewall-Blocklist.ps1 de pe http://www.gregsitservices.com/ip-security/ip-security-package.zip Extrageti fisierul cu scriptul PowerShell, Import-Firewall-Blocklist.ps1 in C:\ip-security Alegeti de aici ce tari vreti sa blocati si descarcati fisierul txt: http://www.ipdeny.com/ipblocks/ Deschideti CMD cu Administrator si scrieti: cd C:\ip-security Apoi urmatorele comenzi: PowerShell.exe -ExecutionPolicy Bypass Poti schimba "ru-aggregated.zone.txt" cu orice tara ai ales tu. .\Import-Firewall-Blocklist.ps1 -inputfile ru-aggregated.zone.txt Dupa ce s-a terminat folositi comanda: PowerShell.exe -ExecutionPolicy Restricted
Friday at 07:16 AM2 days Useful tutorial. One practical caveat: country blocklists can contain thousands of CIDR ranges, and creating one Windows Firewall rule per range can make rule processing slow and hard to audit. If the script supports it, consolidate adjacent ranges and create fewer rules, or apply the blocklist at the router/edge firewall instead. Also be clear whether you intend to block inbound, outbound, or both, because the rule direction changes what actually gets blocked.
Descarcati scriptul PowerShell, Import-Firewall-Blocklist.ps1 de pe http://www.gregsitservices.com/ip-security/ip-security-package.zip
Extrageti fisierul cu scriptul PowerShell, Import-Firewall-Blocklist.ps1 in C:\ip-security
Alegeti de aici ce tari vreti sa blocati si descarcati fisierul txt: http://www.ipdeny.com/ipblocks/
Deschideti CMD cu Administrator si scrieti: cd C:\ip-security
Apoi urmatorele comenzi:
PowerShell.exe -ExecutionPolicy BypassPoti schimba "ru-aggregated.zone.txt" cu orice tara ai ales tu.
.\Import-Firewall-Blocklist.ps1 -inputfile ru-aggregated.zone.txtDupa ce s-a terminat folositi comanda:
PowerShell.exe -ExecutionPolicy Restricted