AD FS 2.0 Workshop – NLB Setup

This article is part of AD FS 2.0 Workshop – Complete High-availability platform

1. Installation of the Windows Network Load-Balancing feature

Since we have two AD FS servers, we install them into a farm configuration. Even though the AD FS servers are installed in a farm configuration, we still need to network load balance them.

1.1. Installation of the NLB service

Since the AD FS servers are running on a virtualization technology, we have to verify that the NIC card has a static MAC address assigned. Windows NLB does not support dynamic MAC address assignment.
The following steps have to be done on both AD FS servers.

  1. Login to the AD FS server with an Administrative account
  2. Open Server Manager
  3. 56

  4. Select Network Load Balancing
  5. 57

  6. Click on Install
  7. 58

  8. Restart the server

Of, course, all that steps can be replaced by two lines of PowerShell:

Import-Module ServerManager
Add-WindowsFeature -Name NLB, RSAT-NLB

1.2. Configuration of the NLB service

  1. Click Start -> Administrative Tools -> Network Load Balancing Manager
  2. Click the ‘Cluster’ menu
  3. Click ‘New’
  4. 59

  5. Enter the DNS suffix for the first AD FS server and click ‘Connect’
  6. 60

  7. Connection status should say ‘Connected’ and the ‘Interfaces available for configuring a new cluster’ should show the IP address of the AD FS server. Click ‘Next’
  8. 61

  9. Verify that the ‘Priority (unique host identifier)’ is set to 1
  10. Verify that the default state is set to ‘Started’. Click ‘Next’
  11. 62

  12. Click ‘Add’ on the Cluster IP Address window.
  13. 63

  14. Enter the IP adress to use for the load-balanced federation service
  15. 64

  16. Change the ‘Cluster operation mode’ – Multicast and fill in the ‘Full Internet name’
  17. 65

  18. Click ‘Edit’
  19. 66

  20. Change the ‘Port range’ – From: 443 To: 443
  21. Change the ‘Protocols’ – TCP
  22. Click ‘OK’
  23. 67

  24. Click ‘Finish’
  25. This will add the AD FS server to the cluster. Verify that the server was added and the status should be ‘Converged’.
  26. 68

  27. Add the second AD FS server into the AD FS NLB Cluster
  28. 70

  29. Add DNS records to the internal DNS zone
  30. Add an internal DNS ‘A record’ for AD FS Service name; which will be the IP address of the NLB cluster; NOT the AD FS server. Keep in mind that the goal is to have multiple ADFS servers that will be load-balanced. We want all traffic to be directed to the cluster IP and then let the cluster decide what AD FS server to send it to.

Ok, but this is a PowerShell blog isn’t it?
Yes it is!
So why the hell the guy is bullshitting us with his screenshots and his ‘click here, click there’!?
You’ve got a point pal… But that could be my point as well: have you seen all the steps to configure this? And what if you want anything else? Ok, let’s use PowerShell script to get the most of it and address different cases (nodes number, port rules, etc.): Create-NLBCluster.ps1

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top