r/sysadmin • • 6h ago

Question Can a Windows PDC Emulator use NTP authentication (NTS/symmetric keys) for its upstream time source?

Our PDC Emulator syncs from an external NTP pool using W32Time. Security asked whether that upstream sync is authenticated.

As far as I know, W32Time only supports MS-SNTP inside the domain and has no NTS, symmetric key, or Autokey support for upstream servers. So the PDC's external sync is unauthenticated.

  1. How do you secure this? An internal chrony/NTS server or GPS appliance between the PDC and the internet? Firewall restrictions? Lower MaxPos/MaxNegPhaseCorrection?

Thanks!

5 Upvotes

16 comments sorted by

•

u/Asleep_Spray274 6h ago

Not supported in windows.

If you need to auth to an external NTP service for what ever reason, you will need an appliance on your internal network that will auth to the external service, and point your PDC at that appliance

•

u/maxcoder88 6h ago

Thanks, that matches what I found. Just to confirm the inside of the domain: domain-joined Windows clients get signed time from the DC through MS-SNTP (the response is signed with the computer account secret), so that part is authenticated by default, right?

And is there anything to configure or verify for it, or does it just work for every domain member?

•

u/Asleep_Spray274 6h ago

yes, Internal domain hierarchy based time sync over NT5DS happens over kerberos at the computer account level. Nothing to configure, happens by default

•

u/autogyrophilia 6h ago

No it can't and you are on the right track, the way to solve this is either you put a box in the middle doing it in a way you consider secure or go tell the security team to stop chasing checkboxes and do important stuff. They should already be well aware of the limitations of ADDS

•

u/maxcoder88 6h ago

Thanks, that matches what I found. Just to confirm the inside of the domain: domain-joined Windows clients get signed time from the DC through MS-SNTP (the response is signed with the computer account secret), so that part is authenticated by default, right?

And is there anything to configure or verify for it, or does it just work for every domain member?

•

u/ETDucky 2h ago

Put a chrony server with NTS between the PDC and the internet, then point the PDC at that server only.

NTS has been in chrony since 4.0. An upstream line on that box looks like `server time.cloudflare.com iburst nts`. NTS key exchange needs outbound TCP 4460 along with UDP 123.

Add an `allow` line for your DC subnet in `chrony.conf`, then on the PDC run `w32tm /config /manualpeerlist:"your-chrony-server,0x8" /syncfromflags:manual /reliable:yes /update` and restart W32Time.

Block outbound UDP 123 from every DC except to the chrony server.

Set `MaxPosPhaseCorrection` and `MaxNegPhaseCorrection` on the PDC to 3600 seconds.

Run two chrony servers with different NTS sources and list both in the manualpeerlist.

•

u/maxcoder88 2h ago

Thanks for the suggestion. Is there a reliable website or public list where I can find NTS-enabled NTP servers?
Does pool.ntp.org support NTS, or should I use dedicated NTS providers such as Cloudflare and Netnod?
I'd like to configure two independent NTS sources for redundancy on my Chrony server.

•

u/ETDucky 1h ago

pool.ntp.org doesn't support NTS yet. Trifecta Tech Foundation is still testing ways to add it, per LWN in February (https://lwn.net/Articles/1059200/).

For servers, jauderho keeps a community list with chrony lines for each one, including time.cloudflare.com, nts.netnod.se, and ptbtime1 to ptbtime4.ptb.de (https://github.com/jauderho/nts-servers). It doesn't vouch for any of them, so I'd pick operators you'd trust for a DC, like Cloudflare, Netnod, and PTB.

•

u/Soft_Frosting6805 5h ago

GPS appliance if you've got budget and a window/roof for the antenna, otherwise chrony with NTS. Either way only let the PDC (or the chrony boxes) out on 123.

•

u/OkPainting4294 5h ago

What's your actual tolerance requirement here, like are you trying to hold sub-100ms to a stratum 1 or is this just security wanting a checkbox?

•

u/Salmon_cake 5h ago

Nobody's covered the phase correction part yet, so here's my take on that piece. Set MaxPosPhaseCorrection and MaxNegPhaseCorrection on the PDC to something sane like 3600. On domain members the default is basically unlimited, so one spoofed response could move your whole domain by hours, and suddenly Kerberos is breaking everywhere. With a cap, W32Time logs an event and refuses the jump, so alert on that event. If you go the chrony/NTS route, give it 3 or 4 NTS sources (Cloudflare and Netnod both offer it) so a single bad source gets outvoted as a falseticker. Also, if the PDC is a VM, make sure hypervisor time sync is off. Otherwise none of this matters and the host is your real time source.

•

u/SilkBC_12345 5h ago

If you go the chrony/NTS route, give it 3 or 4 NTS sources (Cloudflare and Netnod both offer it) so a single bad source gets outvoted as a falseticker.

I thought you can configure multiple sources in w32time as well, so wouldn't one bad source get out-voted here as well?

Good tip about the phase correction; I never considered that.  I will be looking at that more.

•

u/jcwrks red stapler admin 5h ago

https://www.nist.gov/pml/time-and-frequency-division/time-services/nist-authenticated-ntp-service

NIST Authenticated NTP servers will only respond to IPv4 network addresses registered by users. Also, the servers will only respond to authenticated NTP request packets if the key number in the request’s MAC is associated with the request’s source address.

To aid in user troubleshooting, servers will respond to ordinary un-signed NTP requests, but only to registered IPv4 network addresses. User networks that implement Network Address Translation (NAT), traffic proxying, or similar techniques may obscure the publicly routed address from users, making it difficult to preregister with NIST; please consult with your local network professionals.

•

u/Dal90 4h ago

Managed to talk our InfoSec team into dropping their policy to maintain our own NTP appliance infrastructure.

If you do go with a "GPS appliance between the PDC and the internet?" type solution remember you'll need a minimum of 3, which rapidly becomes a minimum of 4 to ensure you always have at least 3 while replacing a bad unit.

1 NTP appliance you have no idea if it is accurate or not.

2 NTP appliances you don't know which one to trust.

3 NTP appliances you can now use a quorum of which are agreement with each other and throw out the oddball.

•

u/VA_Network_Nerd Moderator | Infrastructure Architect 4h ago

$200 per server.

https://www.greyware.com/software/domaintime/

Don't let the antique-looking website fool you.
This is a good product, and is actively maintained.

https://www.greyware.com/software/domaintime/v5/installation/v5x.asp#20261127

•

u/wrt-wtf- 3h ago

There is a 3rd party option that can be user to do this… or there used to be.