GPO to turn off firewall on the workstations

Hi

We have windows 2012 and now started to migrate to windows 10. My predecessors on the default domain policy they have set the Firewall to be on.
So any PC or Server that joins the domain, the firewall is set to be on.

We have a software that connects to the cloud and the client is installed on the workstation and causing network connection failure randomly.
I have been asked by the software vendor to switch off the firewall completely on the 2 of the workstations and try if the error happens.
Please let me know how to isolate these PC from the firewall settings.

These PCs are located on a separated OU called Admin and within this OU there are 40 PCs and don’t want to switch off the firewall on all the PCs.
I want to create a separate OU and without the GPO and firewall settings.
Please let me know as how to achieve this and any help would be great.
Thanks
lianne143Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Joseph HornseyPresident and JanitorCommented:
0
Hello ThereSystem AdministratorCommented:
Put them to the special OU -> Create a new GPO with FW disabled and block inheritance.
0
ITguy565Commented:
Go to Start > Administrative Tools > Policies
Select the policy to edit (Usually: the default policy), right-click and choose “edit”.
Go to Administrative Templates > Network > Network connections > Windows Firewall > Domain Profile.
Disable the “Protect All Network connections” rule.  Just to be sure, you can do the same for the “Standard Profile”, as well.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

ITguy565Commented:
Where you configured the Group Policy for Domain Networks there are tabs for the Private and Public Networks.

Computer Configuration -> Policies -> Windows Settings -> Security Settings -> Windows Firewall with Advanced Security -> Windows Firewall with Advanced Security Properties

Make sure you do it for all network types : Public, Private, and Domain
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Hello ThereSystem AdministratorCommented:
Create a new OU -> put there all test computers -> find this OU in Group Policy Management -> link a new GPO that will have the FW disabled.
Then just choose Block Inheritance within that OU in Group Policy Management that will contain two computers...
block-inheritance.png
0
lianne143Author Commented:
Thanks ,We have a  valid antivirus installed on these PCs.
I would like to switch of the firewall on these PCs for a day  and only for testing purpose. Will this cause any security loop holes?
0
ITguy565Commented:
If your Edge Firewall is configured correctly, then you shouldn't have an issue. The other thing to consider is, I can't speak for applications with internet access on the machines in question. If you disable the local firewall on those workstations then IF there is an application that is internet based there is a chance that someone could get though to that workstation. This is the purpose of the local firewall.

I would say that the risk is minimal if this is a base installation, however if you have multiple applications as well as "End User" installed applications I would be cautious when disabling the local firewall.
0
Shaun VermaakTechnical Specialist/DeveloperCommented:
The main purpose of the HIPS firewall is for local protection from other devices and isolating services such as RDP/Web etc., so yes there is a risk.

Use this to get the vendor app ports:

Function
function Get-NetworkStatistics 
{ 
    $properties = 'Protocol','LocalAddress','LocalPort' 
    $properties += 'RemoteAddress','RemotePort','State','ProcessName','ProcessPath','ProcessCompany','PID' 

    netstat -ano | Select-String -Pattern '\s+(TCP|UDP)' | ForEach-Object { 

        $item = $_.line.split(" ",[System.StringSplitOptions]::RemoveEmptyEntries) 

        if($item[1] -notmatch '^\[::') 
        {
            if (($la = $item[1] -as [ipaddress]).AddressFamily -eq 'InterNetworkV6') 
            { 
               $localAddress = $la.IPAddressToString 
               $localPort = $item[1].split('\]:')[-1] 
            } 
            else 
            { 
                $localAddress = $item[1].split(':')[0] 
                $localPort = $item[1].split(':')[-1] 
            }  

            if (($ra = $item[2] -as [ipaddress]).AddressFamily -eq 'InterNetworkV6') 
            { 
               $remoteAddress = $ra.IPAddressToString 
               $remotePort = $item[2].split('\]:')[-1] 
            } 
            else 
            { 
               $remoteAddress = $item[2].split(':')[0] 
               $remotePort = $item[2].split(':')[-1] 
            }  

            New-Object PSObject -Property @{ 
                PID = $item[-1] 
                ProcessName = (Get-Process -Id $item[-1] -ErrorAction SilentlyContinue).Name
                ProcessPath = (Get-Process -Id $item[-1] -ErrorAction SilentlyContinue).Path
                ProcessCompany = (Get-Process -Id $item[-1] -ErrorAction SilentlyContinue).Company
                Protocol = $item[0] 
                LocalAddress = $localAddress 
                LocalPort = $localPort 
                RemoteAddress =$remoteAddress 
                RemotePort = $remotePort 
                State = if($item[0] -eq 'tcp') {$item[3]} else {$null} 
            } | Select-Object -Property $properties 
        } 
    } 
}

Open in new window



Run and post results here
Get-NetworkStatistics | Select Protocol, LocalPort, ProcessPath, ProcessCompany | Format-Table

Open in new window


Then you could use a process like this to configure firewall for this vendor app
https://www.experts-exchange.com/articles/31687/Windows-Firewall-as-Code.html
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows 10

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.