Showing posts with label Direct Access. Show all posts
Showing posts with label Direct Access. Show all posts

Thursday, 27 November 2014

Intermittent issue with Direct Access connection

I had this tricky problem on a customer site recently. Direct Access (Windows Server 2012 R2) worked perfectly most of the time but intermittently the Workplace Connection would just remain "Connecting" indefinitely. The logs showed that the connection failed with the following error:

0x274c

CouldNotConnectToDirectAccessServer

This error was too generic to be useful and there was no pattern to this bizarre behaviour.

I eventually found the problem. ISATAP had not been removed from the Global Query Blocklist on one of the DNS servers.


Note that this is not an automatic process. It has to be done manually on all DNS servers. I removed ISATAP and restarted the DNS Server service.

Problem solved.





Friday, 10 October 2014

ConfigMgr 2012/ SCCM 2012 - add boundary for Direct Access clients

Back to ConfigMgr main menu

Many of us have seen the problem. We have configured our laptops to use Direct Access and we never see them again. The ConfigMgr 2012 client is installed but has never received it's policy or reported correctly.



This is the dreaded ConfigMgr client that has never received policy.


Only two actions.

What is the problem? The problem is that ConfigMgr is not allowed to send a policy to these devices as they do not belong to any of the known boundaries. The good news it that this is easy to fix. We have to configure an IPv6 boundary.

It's easy to get the information we need. Open the properties of one of your Direct Access clients.


See the IPv6 Prefixes.


Create a boundary for each IPv6 prefix.


New boundaries.


Restart the SMS Agent Host on the client to speed things up. Now examine the PolicyAgent.log file.


We see activity.


The policy is now being downloaded to the client.



Success - healthy client

See here for additional tip for finding your IPv6 Prefix.



Friday, 22 August 2014

Direct Access: High Availability

Back to Direct Access main menu

DirectAccess has become a vital resource in many enterprise environments. We implement High Availability for technologies like SQL and Exchange so why should DirectAccess be any different? The good news is that it's easy to do so.

We've previously deployed a single server DirectAccess solution (lets call this server RAS1). Then we moved the NLS to a remote web server. Now we will implement HA for the solution. The following are the basic steps.

  1. Add NLB feature to RAS1
  2. Build new Windows 2012R2 Server RAS2
  3. Add Remote Access role and NLB feature to RAS2 
  4. Export IPHTTPS listener certificate from RAS1 and import to RAS2
  5. Enable MAC spoofing on virtual NICs
  6. Enable Load Balancing
  7. Add second server to Load Balanced cluster

1. Add NLB feature to RAS1



3. Add Remote Access role and NLB feature to RAS2 


4. Export IPHTTPS listener certificate from RAS1 and import to RAS2 


Export certificate from RAS1

 
 Import to RAS1

5. Virtual NICs

Enable MAC spoofing


Enable MAC spoofing on the virtual NICs of RAS1 and RAS2 

Second NIC

You can implement this solution with a single NIC per server. However it is better practice to use two. The second NIC, for NLB communication, should be configured in separate subnet with no default gateway.



6. Enable Load Balancing

Launch the Remote Access Management console on RAS1.. Open the configuration.


On the bottom right of the window select "Enable Load Balancing".


The "Enable Load Balancing" wizard is launched. Click Next.


Choose NLB as the cluster method (note that you can configure the solution to use an external load balancer).


Enter an available IP address. The wizard is quite smart here. It knows that DirectAccess is already working with a single server solution (RAS1). DNS records and firewall rules have been created and we don't want to have to amend these. Therefore the wizard swaps the IP addresses.

The working dedicated IP address of RAS1 (DIP) becomes the Virtual IP address of the NLB cluster (VIP).
The new available IP address becomes the IP address of RAS1. Pretty clever.....


Verify the settings and "Commit".



Review progress.


Click Close to return to the wizard.


Verify success and close the wizard.


See what has happened. A load balanced cluster has been created with a single node (RAS1).


Note that the IP address of RAS1 has changed.

7. Add second server to cluster


Now, on the bottom right of the Remote Access Management configuration window, choose "Add or Remove Servers".


Select "Add Server".


Browse to choose RAS2.


Ensure that the correct NIC is selected.


Verify the settings and click Add.


Close the wizard.


"Commit" the changes.


Verify progress.


Close the "Adding or Removing Servers" wizard.


See that the second node has been added to the load balanced cluster.



Verify that the nodes are operating correctly.

Issues Encountered
I encountered a couple of issues during this configuration.
  
Firstly the wizard did not seem to add both nodes to the NLB cluster. When I opened the Network Load BaIancing Manager I noticed that only one node was present. I had to add the second node manually.


Also, my DirectAccess solution broke after I introduced NLB. I found that this was due to the fact that my customer had a series of firewalls with some kind of one-to-one NATing throughout. This played havoc with the NLB traffic. This was solved by introducing Dynamic NAT rules.




 

Thursday, 21 August 2014

Direct Access: Move NLS to remote web server

Back to Direct Access main menu

Previously we implemented Direct Access in five easy steps using a single server. In production additional configuration is required to implement a best practice solution.

The Network Location Server is a key component of DirectAccess. Its purpose is to detect whether computers configured as DirectAccess clients are located in the corporate network. When clients are in the corporate network, DirectAccess is not used to reach internal resources. Instead, clients connect to internal resources directly.
 

The network location server is simply a Web site with an HTTPS server certificate. It should be located on a remote web server (not the DirectAccess server - which has the Remote Access role). It is also good practice to have multiple NLS servers in a Highly Available configuration.

This blog post demonstrates how to move the NLS configuration to a remote web server.

First you need a web server. Install IIS as normal.


Next you will need an SSL certificate. Note that you can use a self-signed certificate when the NLS is co-located with the DirectAccess server. However you can't on a remote web server. 

In my example I used my Internal CA and requested a certificate using the Web Server template (using the Certificates Snap-In).



See that further information is required.


The Common Name is the FQDN of the web server (eg nlsweb.contoso.local).


Web Server certificate has been installed.


Add https to site binding and configure to use the new certificate.

Now, back at the DirectAccess server, open the Remote Access Management console.



Edit the Infrastructure Servers section (Step 3).


Enter the URL of the remote server (in the format https://nlsweb.contoso.local) and click to Validate. You will not be able to continue if the URL is incorrect and you cannot validate.


Apply the new settings.


Close the wizard.

Now test your configuration. DirectAccess clients should still be able to connect as normal.