About Me

My photo
This is a blog for John Weber. One of my joys in life is helping others get ahead in life. Content here will be focused on that from this date forward. John was a Skype for Business MVP (2015-2018) - before that, a Lync Server MVP (2010-2014). I used to write a variety of articles (https://tsoorad.blogspot.com) on technical issues with a smattering of other interests. I have a variety of certifications dating back to Novell CNE and working up through the Microsoft MCP stack to MCITP multiple times. FWIW, I am on my third career - ex-USMC, retired US Army. I have a fancy MBA. The opinions expressed on this blog are mine and mine alone.

2010/02/18

ISA/TMG and OCS Firewall Rules for NAT

Recently a client changed their OCS from public routed addresses for the Edge role to a NAT environment.  This necessitated changing their firewall (ISA).

The online documentation for Office Communications Server 2007 R2 Firewall Requirements for External User Access makes the following statement: 

Publicly Routable IP Address

In any location with multiple Edge Servers deployed behind a load balancer, the external firewall cannot function as a network address translation (NAT). However, in a site with only a single Edge Server deployed, the external firewall can be configured as a NAT.

If you do so, configure the NAT as a destination network address translation (DNAT) for inbound traffic—in other words, configure any firewall filter used for traffic from the Internet to the Edge Server with DNAT, and configure any firewall filter for traffic going from the Edge Server to the Internet (outbound traffic) as a source network address translation (SNAT). The inbound and outbound filters must map to the same public IP address and the same private IP address…

Then a little following that, the documentation make this statement in a note: 

In addition to being supported as a reverse proxy, Microsoft Internet Security and Acceleration (ISA) Server is supported as a firewall for Office Communications Server 2007 R2. The following versions of ISA are supported as a firewall:

  • ISA Server 2006
  • ISA Server 2004

If you use ISA Server as your firewall, configuring it as a NAT is not supported because ISA Server 2006 does not support static NAT.

www.isaserver.org has an excellent tutorial on how to configure ISA 2006 to support OCS 2007, a second IP scope, and allow for an Office Communications Server 2007 R1/R2 Edge server to live in your DMZ.

But, based on the above quote and article, and assuming we have only one IP scope to work with, and we want to use NAT because we only have one Edge, what are TMG and ISA users to do?   What follows is one method that works; please be aware that this was developed for a TMG (Threat Management Gateway) environment, and YMMV.  However, I am also confident that it will work on ISA 2006 (tested in lab) also and allow R2 Edge to NAT when using TMG and ISA 2006 SP1. 

What won’t work with ISA and this configuration is Federation.  This is because ISA will not send the SIP packets OUT from the assigned Access Edge interface, but send the packets out from the primary ISA address.  TMG gets around this by allowing you to choose the network relationship - effectively creating the 1:1 NAT that is needed.

For the routable addressing scheme as mentioned shown in the isaserver.org tutorial, the full monte of listeners and rules is used along with certificates that need to be exported, imported, and configured.  This method is much easier, actually, and does not use listeners and certificates, just firewall access rules.  Before you go much further, you should note that this solution may or may not meet your organization’s security needs.   YMMV, Caveat Emptor, etc.

For this demonstration, the ISA external interface is a 10.x.x.x/24 network. The internal interface is connected to a 1.x.x.x/24 network.  Note that we have sufficient addresses to give each OCS Edge role its’ own address; we won’t be doing the port change routine.  Further note that if you do that, this will still work, just change the ports on the firewall rules.  The OCS Edge server has already been told that the A/V role is behind a NAT, so that part of the system is all ready to go. Let’s take a quick look at our IP usage for this scenario and how that corresponds to our internal OCS deployment.

Internal:

Access Edge: 1.1.1.37

Web Conferencing: 1.1.1.39

A/V: 1.1.1.38

External:

Access Edge (SIP): 10.10.10.37

Web Conferencing (LM): 10.10.10.39

A/V (AV): 10.10.10.38

Graphically, this is our IP flow for both in and out, and for OCS, we need to maintain that in/out relationship:

image

Let’s put together the objects and rules we need on the TMG/ISA to allow OCS R2 to NAT. First, we need to create some user-defined protocols to use with our OCS rules.  Here are the protocols that I created to support OCS Edge Roles:

image

To create these user-defined protocols, access the toolbox, select protocols, then “user-defined” and choose New from the dropdown:

image

Fill in the name of the first protocol and select “Next”

image

On the next page, select “New” and then complete the protocol information as shown:

image

Click on OK, Next, Next again, and then Finish to complete the first user-defined protocol.  In your toolbox, under user-defined protocols, you should see your new protocol.  Double-click it and verify that the protocol definition looks like our example here.

image

Now create the remaining two user-defined protocols using this information:

Protocol name

AV TCP In

Protocol type

TCP

Direction

Inbound

Port Range

50000-59999

Protocol name

Sip-In

Protocol type

TCP

Direction

Inbound

Port Range

5061

Protocol name

AV UDP in

Protocol type

UDP

Direction

Receive/Send

Port Range

3478, 50000-59999

With the protocols done, we can now create the access rules.  Here are the rules we need:

image

Rule #7 is for the OCS Reverse Proxy to the Web Components.  We will not be changing that rule in any way.

Rules 1-6 all are constructed in the same manner.  These are actually created with the “Publish Non-Web Server Protocols” wizard. After looking at the first rule, I will present the remainder in table form.

Start by selecting the new task wizard:

image 

Give your new rule a name:

image

Enter in the IP address of the appropriate Edge role external interface.  In our case, 1.1.1.37 is the Access Edge external interface.

image

Choose the appropriate protocol for this rule. This is an SSL rule, so HTTPS Server is selected.

image

Select the Network Listener IP Addresses.  For this example, “External”

image

Click on Address and select your specific External address for this service.  In this example, 10.10.10.37.

image

Click on finish and we are done with the first rule.

image

Now, create the remaining rules using the “Publish Non-Web Server Protocols” task wizard and the following information.

Rule Name

SSL in to Access Edge

Select Server

IP Address for outside edge of OCS Access Edge Role

Selected Protocol

HTTPS Server

Network Listener IP Addresses

External, and modify to specific External IP for Access Edge

Rule Name

SIP in to Access Edge

Select Server

IP Address for outside edge of OCS Access Edge Role

Selected Protocol

SIP-In

Network Listener IP Addresses

External, and modify to specific External IP for Access Edge

Rule Name

SSL in to LM

Select Server

IP Address for outside edge of OCS Web Conferencing Edge Role

Selected Protocol

HTTPS Server

Network Listener IP Addresses

External, and modify to specific External IP for Web Conferencing Edge

Rule Name

SSL in to AV

Select Server

IP Address for outside edge of OCS AV Edge Role

Selected Protocol

HTTPS Server

Network Listener IP Addresses

External, and modify to specific External IP for AV Edge

Rule Name

TCP in to AV

Select Server

IP Address for outside edge of OCS AV Edge Role

Selected Protocol

AV TCP in

Network Listener IP Addresses

External, and modify to specific External IP for AV Edge

Rule Name

UDP in to AV

Select Server

IP Address for outside edge of OCS AV Edge Role

Selected Protocol

AV UDP in

Network Listener IP Addresses

External, and modify to specific External IP for AV Edge

Remember to apply all your changes!  We have now configured our TMG/ISA to allow for full edge traffic across a single NAT’d public IP subnet.  We did not discuss the Reverse Proxy rule for the Web Components, nor did we affect any changes to the base documentation for that service.  Make sure that your Edge Server can resolve the EXTERNAL IP of the AV edge service.  In this example, this would be 10.10.10.38.  I use a host file for this. 

I hope that this has been helpful in getting you going with a NAT’d TMG/ISA and OCS 2007 R2 environment.

2010/02/12

2008 R2 Hyper-V WBadmin failure

Situation:

2008R2 Hyper-V Host.

C: is system only. 

D: is hyper-v system files and VM VHD’s

Doing a complete server scheduled Windows Backup fails:  "The backup operation that started at '‎2010‎-‎02‎-‎13T06:21:44.876000000Z' has failed because the Volume Shadow Copy Service operation to create a shadow copy of the volumes being backed up failed with following error code '2155348001'. Please review the event details for a solution, and then rerun the backup operation once the issue is resolved.

Drive C: backed up from command line just fine:

wbadmin start backup -backuptarget:\\network\share -include:c: -allcritical -quiet

Drive D: (288 GB of VM VHD) fails even from command line.

Solution:

Read this and then do the following.

Open an elevated command prompt and do “vssadmin list writers”

In my case this is the result (and it matches the reference CSS advice). Remember that the CSS advice is to double-check this value as yours MAY be different.

Writer name: 'Microsoft Hyper-V VSS Writer'
   Writer Id: {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de}
   Writer Instance Id: {7df567b8-ed9f-4383-ae86-0489c9569cc2}
   State: [5] Waiting for completion
   Last error: Unexpected error

goto: 

  1. hklm\software\microsoft\windowsNT\currentversion\spp
  2. Add a new key as type reg_Multi_SZ
  3. Name for new key: DisabledWriters
  4. Value for new key: {66841cd4-6ded-4f4b-8f17-fd23f8ddc3de} (remember that yours may be different - run a vssadmin list writers to determine your value for the key)
  5. net stop wbengine
  6. net start wbengine

My windows backup immediately worked properly, backing up over 280GB of active VM VHD’s.

2010/02/09

quote o da day

In my many years I have come to a conclusion that one useless man is a shame,

two is a law firm and three or more is a congress.

--John Adams

2010/02/05

Monks could do better!

Take a look at this screaming transfer speed!

I picture a row of Gregorian monks in the cellar, working by candlelight, with paintbrushes and huge scrolls and manually bound sheaves of parchment.

 

image

test 02 Feb

this is a test it’s only a test this should be a picture