AD Sites & Services exclusivly for only certain client machines

Yankee30 206 Reputation points
2021-07-22T14:09:56.707+00:00

Can I restrict a particular Domain Controller to serve only few clients with particular IP addresses and nothing else.

I know I can put up a site with the Domain controller and attach the required IP addresses to that site.

But how can I make sure no other client IP addresses get authenticated via this site as there might be IP address range not defined in the subnets?

Can I set up some firewall rules in DC so that it talks to only defined client IP addresses? If so what rules would they be?

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,470 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
5,898 questions
{count} votes

Accepted answer
  1. Pierre Audonnet - MSFT 10,166 Reputation points Microsoft Employee
    2021-07-22T18:29:52.817+00:00

    You can achieve this by configuring the SRV records registered by the domain controller.

    When the NetLogon service of the domain controller will register two "types" of SRV records:

    1. The site specific records that allow clients on the same site de locate the domain controller.
    2. The generic records that allow clients which do not know in which site they are in, or have to an IP address that doesn't belong to any subnet nor site

    If you want the DC to be used only by clients which are in the same site of the DC (the point 1) then you can instruct your domain controller NOT to register its generic records (the point 2). In order to do that, follow those stepts:

    • Edit the group policy and find the following parameter: Computer Configuration > Policies > Administrative Templates > System > Net logon > DC Locator DNS record > Specify DC Locator DNS records not registered by the DCs.
    • Enable this parameter and in the field you have to type all the records that you don't want to see in the DNS (those keywords are explained here). So type the following (the separator is a space character): LdapIpAddress Ldap LdapAtSite Pdc Gc GcAtSite GcIpAddress Kdc KdcAtSite Dc DcAtSite Rfc1510Kdc Rfc1510KdcAtSite GenericGc GenericGcAtSite Rfc1510UdpKdc Rfc1510Kpwd Rfc1510UdpKpwd.
    • Do not delete the DsaCname, this is used for the replication.
    • Restart the NetLogon service

    At this point your DC is invisible for clients outside of the site. But it is possible that clients picked up that DC before your changes. In that case you can just be patient. Clients are re-discovering DCs every 12 hours. So after 12 hours you should only see clients in the same site.

    Also, if applications have hardcoded this DC, they might still continue to use it (you can have a look here if that's a concern: https://learn.microsoft.com/en-us/archive/blogs/pie/how-to-detect-applications-using-hardcoded-dc-name-or-ip). But if that's a new DC then the problem doesn't exist since the applications will not have the time to hardcode to that DC yet.

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Hannah Xiong 6,231 Reputation points
    2021-07-23T03:29:32.217+00:00

    Hello @Yankee30 ,

    According to our requirement, our requiremenet is:

    1. A particular Domain Controller in one site will only server a few clients.
    2. No other clients from other sites get authenticated from this domain controller.

    As mentioned, we will need different IP ranges to configure the sites and subnets. Please specify what subnets define each site. And then make some restrictions from the network side, such as make the network segment of each site isolated.

    Hope this information could be of some help to you. Thanks a lot.

    Best regards,
    Hannah Xiong

    0 comments No comments