dbTalk Databases Forums  

Windows Firewall Service on MSCS

microsoft.public.sqlserver.clustering microsoft.public.sqlserver.clustering


Discuss Windows Firewall Service on MSCS in the microsoft.public.sqlserver.clustering forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Peter Lindberg
 
Posts: n/a

Default Windows Firewall Service on MSCS - 02-09-2010 , 10:42 AM






I've set up our first sql2k8 cluster on w2k8 r2 and it works as
expected.

Now I got a funny experience with the firewall. As I want it the
firewall is started and the proper ports is open.

For a reason on helping a co-worker I stopped the windows firewall
service on one node and what is happening is that the opened ports is
disabled and no SQL (1433), RDP (3389) or ICMP traffic is allowed.
That's fine but as I can't connect to my instance my wonder is, should
it not initiate a failover? I can manually move the group between the
nodes and where the firewall service is on I can connect.

I also moved the cluster group back and forward,

I get it that the heartbeat is working even with the firewall service
stopped and that's why the groups not fail.

Of course I will keep the firewall service running, but shouldn't
there not be a failover if the firewall service of any reason stops?

/Peter

Reply With Quote
  #2  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: Windows Firewall Service on MSCS - 02-09-2010 , 11:10 AM






Windows 2008 (and R2) doesn't open specific ports. It allows applications
to access network resources. Thesea pplications correspond to specific,
signed binaries.

Here is an enumeration of the binaries for SQL Server 2005. SQL 2008
binaries are similarly located but with "100" instead of "90" in the path.

http://weblogs.sqlteam.com/geoffh/ar...-Unusable.aspx

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Peter Lindberg" <plTAKE (AT) AWAYlg (DOT) se> wrote

Quote:
I've set up our first sql2k8 cluster on w2k8 r2 and it works as
expected.

Now I got a funny experience with the firewall. As I want it the
firewall is started and the proper ports is open.

For a reason on helping a co-worker I stopped the windows firewall
service on one node and what is happening is that the opened ports is
disabled and no SQL (1433), RDP (3389) or ICMP traffic is allowed.
That's fine but as I can't connect to my instance my wonder is, should
it not initiate a failover? I can manually move the group between the
nodes and where the firewall service is on I can connect.

I also moved the cluster group back and forward,

I get it that the heartbeat is working even with the firewall service
stopped and that's why the groups not fail.

Of course I will keep the firewall service running, but shouldn't
there not be a failover if the firewall service of any reason stops?

/Peter

Reply With Quote
  #3  
Old   
Peter Lindberg
 
Posts: n/a

Default Re: Windows Firewall Service on MSCS - 02-15-2010 , 05:32 AM



Geoff, I'm sorry but I don't understand your answer.

OK, I opened ports due to http://support.microsoft.com/kb/968872. Is
it a better practice to setup a rule for for sqlservr.exe and
sqlbrowser.exe instead of that KB?


What I still don't get is why I don't get a group fail of the
sqlserver group when the sqlserver is not availibale because the
firewall service is stopped? For this to be recreated it doesn't
mather wich way I chose to open the firewall.

Here is what I expect to get and also get:
I get a fail if I lose the public network
I get no fail if I lose the heartbeat network. (internal thru public)
I get a fail if the server reboots or BSOD.

But if the windows firewall service has failed or been stopped I just
get an unaccessable SQL instance. Why can't the cluster identify it as
an error and fail the group?

/Peter

On Tue, 9 Feb 2010 11:10:14 -0500, "Geoff N. Hiten"
<SQLCraftsman (AT) gmail (DOT) com> wrotc:

Quote:
Windows 2008 (and R2) doesn't open specific ports. It allows applications
to access network resources. Thesea pplications correspond to specific,
signed binaries.

Here is an enumeration of the binaries for SQL Server 2005. SQL 2008
binaries are similarly located but with "100" instead of "90" in the path.

http://weblogs.sqlteam.com/geoffh/ar...-Unusable.aspx

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Peter Lindberg" <plTAKE (AT) AWAYlg (DOT) se> wrote in message
news:4b716dc4.101967250 (AT) msnews (DOT) microsoft.com...
I've set up our first sql2k8 cluster on w2k8 r2 and it works as
expected.

Now I got a funny experience with the firewall. As I want it the
firewall is started and the proper ports is open.

For a reason on helping a co-worker I stopped the windows firewall
service on one node and what is happening is that the opened ports is
disabled and no SQL (1433), RDP (3389) or ICMP traffic is allowed.
That's fine but as I can't connect to my instance my wonder is, should
it not initiate a failover? I can manually move the group between the
nodes and where the firewall service is on I can connect.

I also moved the cluster group back and forward,

I get it that the heartbeat is working even with the firewall service
stopped and that's why the groups not fail.

Of course I will keep the firewall service running, but shouldn't
there not be a failover if the firewall service of any reason stops?

/Peter

Reply With Quote
  #4  
Old   
Geoff N. Hiten
 
Posts: n/a

Default Re: Windows Firewall Service on MSCS - 02-15-2010 , 09:47 AM



Stopping the Windows firewall service often breaks windows networking. You
can set the firewall to OFF and it will work. No network means no IP
address, which is one of the SQL dependencies so SQL will not come online.
In addition, something breaks hte network resource DLL so it doesn't
recognize the failure correctly. You cannot turn off the firewall service,
you must either set specific ports or turn off the firewall via control
panel/computer manager.

Windows firewall does not work like an external firewall. External
firewalls block ports and IP addresses. Windows firewall allows (or denies)
access to the network for specific signed executables. The blog post shows
how to add the the key SQL Executables to the allowed list.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Peter Lindberg" <plTAKE (AT) AWAYlg (DOT) se> wrote

Quote:
Geoff, I'm sorry but I don't understand your answer.

OK, I opened ports due to http://support.microsoft.com/kb/968872. Is
it a better practice to setup a rule for for sqlservr.exe and
sqlbrowser.exe instead of that KB?


What I still don't get is why I don't get a group fail of the
sqlserver group when the sqlserver is not availibale because the
firewall service is stopped? For this to be recreated it doesn't
mather wich way I chose to open the firewall.

Here is what I expect to get and also get:
I get a fail if I lose the public network
I get no fail if I lose the heartbeat network. (internal thru public)
I get a fail if the server reboots or BSOD.

But if the windows firewall service has failed or been stopped I just
get an unaccessable SQL instance. Why can't the cluster identify it as
an error and fail the group?

/Peter

On Tue, 9 Feb 2010 11:10:14 -0500, "Geoff N. Hiten"
SQLCraftsman (AT) gmail (DOT) com> wrotc:

Windows 2008 (and R2) doesn't open specific ports. It allows applications
to access network resources. Thesea pplications correspond to specific,
signed binaries.

Here is an enumeration of the binaries for SQL Server 2005. SQL 2008
binaries are similarly located but with "100" instead of "90" in the path.

http://weblogs.sqlteam.com/geoffh/ar...-Unusable.aspx

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Peter Lindberg" <plTAKE (AT) AWAYlg (DOT) se> wrote in message
news:4b716dc4.101967250 (AT) msnews (DOT) microsoft.com...
I've set up our first sql2k8 cluster on w2k8 r2 and it works as
expected.

Now I got a funny experience with the firewall. As I want it the
firewall is started and the proper ports is open.

For a reason on helping a co-worker I stopped the windows firewall
service on one node and what is happening is that the opened ports is
disabled and no SQL (1433), RDP (3389) or ICMP traffic is allowed.
That's fine but as I can't connect to my instance my wonder is, should
it not initiate a failover? I can manually move the group between the
nodes and where the firewall service is on I can connect.

I also moved the cluster group back and forward,

I get it that the heartbeat is working even with the firewall service
stopped and that's why the groups not fail.

Of course I will keep the firewall service running, but shouldn't
there not be a failover if the firewall service of any reason stops?

/Peter

Reply With Quote
  #5  
Old   
Peter Lindberg
 
Posts: n/a

Default Re: Windows Firewall Service on MSCS - 02-16-2010 , 02:00 AM



I understand that the FW should be on, I also wrote that it's intended
to be on in my first message.

My question has nothing to do with external FW.

My opinion is that high availability should mean that the SQL group
fail when it's inaccessable from outside. When the FW service is off
(doesn't matter why), SQL is inaccessable from outside and as I read
your answer it's meant to be so.

Thank you for trying to explain, but I don't think it's high
availability!

It's very easy to recreate, set up a W2K8 R2 cluster with SQL2K8 and
connect to sql via SSMS from outside. Stop FW on the cluster node
owning the SQL group and SSMS can no longer can access SQL. If you
move the group to the other node SSMS can connect again.

In my setup I have one public nic and one internal nic.

/Peter


On Mon, 15 Feb 2010 09:47:08 -0500, "Geoff N. Hiten"
<SQLCraftsman (AT) gmail (DOT) com> wrotc:

Quote:
Stopping the Windows firewall service often breaks windows networking. You
can set the firewall to OFF and it will work. No network means no IP
address, which is one of the SQL dependencies so SQL will not come online.
In addition, something breaks hte network resource DLL so it doesn't
recognize the failure correctly. You cannot turn off the firewall service,
you must either set specific ports or turn off the firewall via control
panel/computer manager.

Windows firewall does not work like an external firewall. External
firewalls block ports and IP addresses. Windows firewall allows (or denies)
access to the network for specific signed executables. The blog post shows
how to add the the key SQL Executables to the allowed list.

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Peter Lindberg" <plTAKE (AT) AWAYlg (DOT) se> wrote in message
news:4b75c98e.191001125 (AT) msnews (DOT) microsoft.com...
Geoff, I'm sorry but I don't understand your answer.

OK, I opened ports due to http://support.microsoft.com/kb/968872. Is
it a better practice to setup a rule for for sqlservr.exe and
sqlbrowser.exe instead of that KB?


What I still don't get is why I don't get a group fail of the
sqlserver group when the sqlserver is not availibale because the
firewall service is stopped? For this to be recreated it doesn't
mather wich way I chose to open the firewall.

Here is what I expect to get and also get:
I get a fail if I lose the public network
I get no fail if I lose the heartbeat network. (internal thru public)
I get a fail if the server reboots or BSOD.

But if the windows firewall service has failed or been stopped I just
get an unaccessable SQL instance. Why can't the cluster identify it as
an error and fail the group?

/Peter

On Tue, 9 Feb 2010 11:10:14 -0500, "Geoff N. Hiten"
SQLCraftsman (AT) gmail (DOT) com> wrotc:

Windows 2008 (and R2) doesn't open specific ports. It allows applications
to access network resources. Thesea pplications correspond to specific,
signed binaries.

Here is an enumeration of the binaries for SQL Server 2005. SQL 2008
binaries are similarly located but with "100" instead of "90" in the path.

http://weblogs.sqlteam.com/geoffh/ar...-Unusable.aspx

--
Geoff N. Hiten
Principal SQL Infrastructure Consultant
Microsoft SQL Server MVP


"Peter Lindberg" <plTAKE (AT) AWAYlg (DOT) se> wrote in message
news:4b716dc4.101967250 (AT) msnews (DOT) microsoft.com...
I've set up our first sql2k8 cluster on w2k8 r2 and it works as
expected.

Now I got a funny experience with the firewall. As I want it the
firewall is started and the proper ports is open.

For a reason on helping a co-worker I stopped the windows firewall
service on one node and what is happening is that the opened ports is
disabled and no SQL (1433), RDP (3389) or ICMP traffic is allowed.
That's fine but as I can't connect to my instance my wonder is, should
it not initiate a failover? I can manually move the group between the
nodes and where the firewall service is on I can connect.

I also moved the cluster group back and forward,

I get it that the heartbeat is working even with the firewall service
stopped and that's why the groups not fail.

Of course I will keep the firewall service running, but shouldn't
there not be a failover if the firewall service of any reason stops?

/Peter

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.