Question

Group Policy: How do I enable Windows Firewall for public connection, but disable for company LAN/WAN/VPN?

Asked by: OSUPropa

I need to do the following with Windows XP SP2 (Windows) Firewall via Group Policy:

AUTOMATICALLY (NO USER INTERACTION) ENABLE WINXP SP2 WINDOWS FIREWALL
*  ONLY while a system is on a non company DNS domain (public access).  The Firewall should be DISabled while on the corporate LAN/WAN/Domain etc..
*  While Firewall is enabled, make certain Outlook Web Access, Outlook HTTP access, Internet web browsing, and VPN connections can remain operational.

WHAT IS KNOWN
*  Group Policy:  Computer Configuration>Administrative Templates>Network>Network Connection>Prohibit use of Internet Connection Firewall on your DNS domain network .... Know this makes certain the Firewall is not activated while the system is connected directly to the domain - LAN/WAN (not certain if this includes VPN or just certain forms of VPN)

*  The Domain Profile folder and Standard Profile folder exist to differentiate settings for corp and public access

*  If the "Protect All Network Connections" GPo is enabled, the 'Prohibit use of Internet Connection Firewall on your DNS Domain network GPo is voided

QUESTION

How does one make certain the Firewall is indeed ENABLED while on the Public connection and include necessary exceptions without having an admin user turn the Firewall on manually?  I'm pretty certain I see how to add the exceptions, but don't see where the Firewall can be enabled automatically without user interaction, and without voiding the "...no Firewall on your DNS Domain" GPo?

Greatly appreciate your time!

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2008-05-14 at 12:23:40ID23402811
Tags

Microsoft

,

Windows Firewall

,

Windows XP SP2

,

Group Policy Settings for activation and exception criteria

Topics

Consumer Firewalls

,

Windows XP Operating System

,

Miscellaneous Security

Participating Experts
2
Points
500
Comments
14

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. WAN or VPN with Linux
    We have 2 offices 80 miles apart from each other. Each have thier own ethernet network with Sun servers and multiple PC workstations. In 1 office I have a Linux internet server with a dedicated ISDN connection to an ISP. What would be the ideal method for setting up a secu...
  2. VPN (WAN) solution
    I want to create a WAN-type of environment for my client. The desire is to have all users, at the (9) remote offices, login directly to the (main office’s) network (or a "BDC") – as if they were sitting in the main office and logging in. The client has limited fun...
  3. VPNs over WANs.
    Would anyone please help me to find the source or answer about the advantages and disadvantages of using VPNs over WANs !! Cheers !!
  4. Routing Question to differentiate WAN w/ internet
    I am currently setting up and MPLS WAN on a private connection between my branches and corporate hq. Currently we are using VPN through a pix. I would like to put the routers in series and set up a system of routing to differentiate WAN and internet routes. This is how I e...
  5. VPN and NAT in a MPLS WAN
    I am trying to set up a network between three Branch offices with private IP networks (192.168.102.0, 192.168.103.0 & 192.168.104.0) and a Corporate Office location with a private IP network (192.168.101.0). The WAN in use is a Sprint MPLS that requies a VPN connetction b...

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: KenneniahPosted on 2008-05-15 at 07:33:51ID: 21574056

All you need to do is set "Windows Firewall: Protect all network connections" to Enabled under Standard Profile, and Disabled under Domain Profile.

 

by: OSUPropaPosted on 2008-05-19 at 14:42:07ID: 21601874

Will give that a whirl...

 

by: OSUPropaPosted on 2008-05-20 at 18:49:48ID: 21611638

ACK! I knew it wasn't going to be that easy...

The group policy was set-up as indicated:.

1.  The default domain policy (applied to all domain computers) includes the administrative template: Network/Network Connections/Windows Firewall/Domain Profile/Windows Firewall: Protect all network connections - Disabled
 NOTE:  This setting has been in existence for some time (we've always had the Windows Firewall set so that it was off and no one could turn it on)

2. A test OU container labeled 'FW Test' was created.  A special test 'Firewall Policy' GPO was created and linked to the FW Test' OU container.  The Firewall Policy GPO included the following Administrative Template:  Network/Network Connections/Windows Firewall/Standard Profile/Windows Firewall: Protect all network connections -- Enabled

3.  A couple of test machines that had already been a member of the domain for some time were added to the FW Test container.  

4.  I ran gpupdate /force to update the computer's policy.  I even restarted several times just for good measure.

5.  I ran RSOP.MSC on the computer to view the Resultant Set of Policy.  All looked great!  within the Administrative Templates/Network/Network Connections/Windows Firewall/Standard Profile, the Windows Firewall: Protect all network connections was Enabled.  Within the Network/Network Connections/Windows Firewall/Domain Profile, the Windows Firewall: Protect all network connections setting was Disabled.

6.  I quickly ran to the nearest public Internet connection believing this was EASY.  The Firewall (SharedAccess) service wasn't started.  I couldn't even start it as an administrator manually through the GUI, or command line.

7.  At a loss, I completely removed the PC computer account from the domain and added it to a workgroup -- The Firewall service still wouldn't start.

8.  I set out to find the problem using the error message that appeared when I would try to start the service manually:  "Windows Firewall settings cannot be displayed because the associated service is not running. Do you want to start the Windows Firewall/Internet Connection Sharing (ICS) service?
If you click Yes, you receive the following error message:
Windows cannot start the Windows Firewall/Internet Connection Sharing (ICS) service"

CURRENTLY
I'm at Microsoft KB Article --   http://support.microsoft.com/kb/892199
...states that certain Administrative templates have problems and the default security descriptor for the SharedAccess service needs to be restored.  Which is fine, but the method for doing so seems like it's going to be a huge pain for the couple hundred machines that this policy setting needs to be applied to...

ANY Thoughts?  Perhaps the GPO(s) weren't set-up exactly right?  I smell a call to Microsoft Support coming.




 

by: OSUPropaPosted on 2008-05-20 at 19:08:28ID: 21611709

To add insult to injury, I cannot perform the first method of restoring the default security descriptor:   I get "[SC] OpenService FAILED 5:  Access is denied"

 

by: OSUPropaPosted on 2008-05-21 at 06:43:40ID: 21614922

ok, I just loaded a brand new Windows XP SP2 Image and had first boot-up into a Workgroup -- I could manually switch the Firewall on or off at will using the GUI or command line -- no problem.

I added the PC to the domain -- what looks to be the correct resultant set of group policy shows (Domain - Disabled; Standard - Enabled) -- went to a public Internet site and the firewall service will not start (automatically or manually).  

So, either the application of the Domain=WF Disabled policy by way of the Default Global Domain policy, and then using a sub container and separate test policy that simply enables the firewall in the Standard folder -- is not the way to go and breaks the permissions to the Firewall service.

 

by: KenneniahPosted on 2008-05-22 at 06:19:55ID: 21623521

A service can't start when it's set to disabled in services.msc, which is what the policy does when on a domain. What doesn't seem to be working right is the detection of not being on the domain and enabling the service.

Did you log off and back on after disconnecting from the domain network and connecting to a public one?

 

by: KenneniahPosted on 2008-05-22 at 06:20:54ID: 21623532

The reason I ask, is policy gets applied based upon what Windows detects when you log in. If you were already logged in, but just changed networks it would not redect which policy to use.

 

by: OSUPropaPosted on 2008-05-23 at 08:01:28ID: 21632728

Yes, I did... did a total shutdown... went out the door and traveled to a public Internet (wifi) site.  Powered-up, and nothing.  An IPconfig /all verifies that a totally new and foreign DNS suffix is shown -- all knew Gateway and DNS servers...

One thing I did find was that the actuall Firewall/ICS service was disabled in the default domain policy... this was in addition to the Domain/Protect All Network connections being disabled.

The service was set to 'Automatic' in the default domain policy... did what seemed like 50 gpupdate /force refreshes... and still can't get the service to start whether detached from the domain or on a different domain.  

While on the public Internet access, I ran the "netsh firewall show state" comman line.  I kept getting "This service has not been started"  When I tried to manually start it, no luck.

Is it possible to totally hose the service with domain policy so that it can never be used again no matter what one does?  

I'm beginning to wonder if having the domain profile being set in the default domain policy and the standard profile being set (enabled) in a a sub container and separately linked GPo are the problem.  Perhaps they have to both be a part of the same GPo?

 

by: KenneniahPosted on 2008-05-23 at 08:14:49ID: 21632850

Hmm, not sure, all I can say is that ours are in the same GPO and we've had no problems.

 

by: OSUPropaPosted on 2008-05-23 at 10:08:43ID: 21633910

okay... set the default domain policy to "not configured" for the Domain Profile\ 'Protect all network connections'

Then performed all necessary settings in the test GPo only.  RSOP indicates the domain profile is 'disabled' the standard profile is "enabled"

Going to go to public Internet now and see how she goes.  

Out of curiosity, I did disconnect from our network altogether and try to manually start the firwall service which was sitting -- not started, but set to automatic (as we'd set in default domain policy).

Got the same error -- "Could not start the Windows Firewall\ICS service on Local Computer.  Error 0x80004015:  The class is configured to run as a security ID different from the caller"

 

by: KenneniahPosted on 2008-05-23 at 10:14:44ID: 21633953

LOL, guess I should have looked at the error sooner....
http://support.microsoft.com/kb/892199

 

by: OSUPropaPosted on 2008-05-23 at 12:10:34ID: 21634932

hehe... I forgot to try that KB article again (end of my second comment) after having removed the disabled status of the Firewall/ICS service in the defaul domain policy....  Method 1 worked this time... I'm off to the public connection -- again.  ;-)  Yes, it'd be nice to have a lab setup with a different domain to connect to, will definitely be doing that.

Fingers crossed...

 

by: OSUPropaPosted on 2008-05-27 at 09:42:36ID: 31458004

Appreciate the help!  I apologize for the delay - Your first comment was right on, I just had a little rider issue that had to be delt with.

 

by: dtoccoPosted on 2008-07-23 at 14:22:42ID: 22074028

OSUPropa,

Can you please update me regarding this question -- were you able to resolve this issue and have windows FW disabled on company LAN but enabled on public WAN?

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...