[LabTech] IPBlock Windows Firewall plugin.

On June 12, 2014, in How-to, Projects, Scripting, by Cubert aka (Cube Dweller)

Block entire countries from seeing your PC on the Internet


Squidwork’s garage has released version 1 of their new IPBlock for Labtech RMM. IPBlock is a Country based Network Firewall plugin for Windows based systems. When deployed you can select different countries you do not want to have access to your IP address for any Windows Vista / 7 / 2008 or new system and block them from network access to your PC.


How it works:

The plugin launches a script that goes out and refreshes a complete list of all countries and any IP ranges assigned to those countries. It imports them into the local host and stores them in zone files inside the LTSvc directory. Then based on your selection it applies each zone to the Windows firewall as a rule set.

What does this do for me?

This greatly reduces your Internet footprint and attack surface. Preventing access from countries that have large amounts of attacking systems. It also reduces your ability to be fully exploited by Trojans, Virus or Worms as if infected it makes it much harder to “Phone Home” if the attack comes from a Country you have blocked like “China”.

Version 1 only controls the lists that are applied to your PC it does not turn on or off the actual firewall on Windows. You will need to turn on firewall through the Windows control panel for rules to actually take effect. Then to stop the filtering shut down Windows firewall or go into plugin and select “None” and apply for all rule sets placed in by IPBlock to be removed.


Get Version 1.0.3 here







Enjoy Cubert 😎

7 Responses to “[LabTech] IPBlock Windows Firewall plugin.”

  1. Justin says:

    When I’m testing this plug-in on my test virtual machine the script fails after the part where it applies blocks for “region”. Below is the information it gives me on the failed part. Let me know if you need any more information.

    [IPBlock] – File C:\Windows\LTsvc\IPBlock\IPBlock.ps1 cannot be loaded because the executio
    n of scripts is disabled on this system. Please see “get-help about_signing” fo
    r more details.
    At line:1 char:37
    + C:\Windows\LTsvc\IPBlock\IPBlock.ps1 <<<< -InputFile C:\Windows\LTsvc\IPBloc
    + CategoryInfo : NotSpecified: (:) [], PSSecurityException
    + FullyQualifiedErrorId : RuntimeException

  2. MIchael says:

    I installed and tested this and it does not work. I applied the block for China and after it confirmed it was set I was still able to go to edu.cn. The ip is China’s

  3. MIchael says:

    Justin you need to set your execution policy to unrestricted. Doesn’t mater though because this plugin does not work .

  4. Guys, can you provide the OS specs your using along with Powershell version?

  5. Michael says:

    The Pc is running Powershell version 2.0 / Windows 7 64x. And just to confirm I need to have the windows firewall enable for this to work – is that a correct statement?.

  6. Michael says:

    Has anyone been able to get this to work properly?

  7. Michael says:

    Cubert, I would really like to use this for our clients. How much would it cost for you to work with me to get this plug in working?

Leave a Reply