If you have Windows Country Firewall Lock on your PC, this blog post might help you fix the problem.
Many clients ask me what they can get to protect against countries where most people don’t want to connect to their work or home network because they know those countries and / or the threat they pose, there is nothing to do. last hack.
A simple zero cost solution still exists with your Windows system. Windows Firewall can be used to fix this very quickly in a situation with distributed country IP tables and PowerShell.
Block Country IP Addresses In Windows Firewall Using PowerShell
Step 5. Create a directory in which the PowerShell and PowerShell scripts will run. Example: only: c: ip-security
Step Download the PowerShell script Import-Firewall-Blocklist.ps1 from http://www.gregsitservices.com/ip-security/ip-security-package to your C: ip-security folder.
Step 3. Go to http://www.ipdeny.com/ipblocks/ and download the CIDR IP tables in the country format where you really want to access your Windows system. To the right of the directory, you can access the “aggregated spaces file” for each country. Click on it directly and you will see a directory of IP-addresses. Right click and save the file in C: ip-security directory in simple format. IT IS IMPORTANT.
Example. Basically, save the china in china.zone.txt so that when you update one of our zone files, most of the old rules you created will be removed. You can get larger data (left) if you want, but the aggregated scopes are activity based.
CHINA (CN) (save as china.zone.txt)
KOREA, PEOPLE’S DEMOCRATIC REPUBLIC (KP) As (excluding north korea.zone.txt)
RUSSIAN FEDERATION (RU) As (Russia.zone.Run save txt)
Step 4. PowerShell as Administrator (Right-click PowerShell and select Run as Administrator).
Step 5. Enter “PowerShell quotes.exe -ExecutionPolicy Bypass” if the script policy is executed using PowerShell so that the program can create Windows Firewall Rules.
Step 6. Start by entering the zones according to the Windows of your firewall. Option 1 is considered for older versions of PowerShell. If option 1 fails, also use option 2.
Step 7. As a precaution, we return PowerShell back. to the “Restricted access to scripts” mode, as shown below. Enter PowerShell.exe -ExecutionPolicy Restricted without quotes .Es
So … I suggest the client save your zone files so that you can easily update them by overwriting them. I would tell these people that a client is attacked once a month. Below you can see what the rules look like in Windows Internal Firewall. Note
Note. The names of the rules will most likely look like this: china.zone- # 001, etc. For this reason, it was important to overwrite the file name (china.zone.txt) in the future so that new messages can be overwritten and deleted as soon as possible. time frame to save time and effort. -84 “>