18.4 C
New York
Monday, March 10, 2025

community – Request for assist in NTP Sync between Home windows and Ubuntu


I am going through a problem with time synchronization between my Home windows PC and an Ubuntu NTP server for a month now and I wished to ask for some assist. I’ve posted the identical query in ServerFault and Reddit and Microsoft Help and I used to be directed right here to hunt extra assist.

Here is my setup and what I’ve tried thus far:

Setup: Ubuntu PC:

IP Handle: 192.168.0.100

NTP Server: ntpd operating and synchronized with a number of servers.

Firewall (UFW): Disabled

Home windows PC:

IP Handle: 192.168.0.99

Home windows Time service (w32time): Working

Firewall: Added rule to permit UDP visitors on port 123

Steps Taken: Ubuntu NTP Configuration: Added the next strains to /and so forth/ntp.conf:

limit 192.168.0.0 masks 255.255.255.0 nomodify notrap
server 0.ubuntu.pool.ntp.org iburst
server 1.ubuntu.pool.ntp.org iburst
server 2.ubuntu.pool.ntp.org iburst
server 3.ubuntu.pool.ntp.org iburst

Restarted NTP service: (sudo systemctl restart ntp). Verified NTP standing (ntpq -p) reveals synchronization with upstream servers.

Home windows Configuration: Added firewall rule to permit NTP visitors:

netsh advfirewall firewall add rule identify="Enable NTP" protocol=udp dir=in localport=123 
motion=enable

Configured NTP server:

w32tm /config /manualpeerlist:192.168.0.100 /syncfromflags:handbook /dependable:YES /replace

Restarted Home windows Time service:

web cease w32time
web begin w32time

Resynchronization:

w32tm /resync

Problem: Regardless of these configurations, my Home windows PC continues to make use of the native CMOS clock because the time supply. Additionally tried the steps for disabling safe time seeding from – https://be taught.microsoft.com/en-us/troubleshoot/windows-server/active-directory/client-clock-reverts-to-previous-time. The output of w32tm /question /standing reveals:

Supply: Native CMOS Clock
ReferenceID: 0x4C4F434C (LOCL)
Stratum: 1
Working w32tm /stripchart /pc:192.168.0.100 /samples:5 /dataonly outcomes :

Monitoring 192.168.0.100 [192.168.0.100:123].
Gathering 5 samples.
The present time is nineteen/08/2024 14:57:27.
14:57:27, +1956.0418399s
14:57:29, +1956.0418009s
14:57:31, +1956.0417711s
14:57:33, +1956.0417003s
14:57:35, +1956.0416871s

PS C:WINDOWSsystem32> w32tm /question /friends

#Friends: 1
Peer: 1**.**..**0
State: Pending
Time Remaining: 0.0000000s
Mode: 0 (reserved)
Stratum: 0 (unspecified)
PeerPoll Interval: 0 (unspecified)
HostPoll Interval: 0 (unspecified)
Further Data:

  • I can ping the Ubuntu PC from the Home windows PC with none points.

  • The Ubuntu NTP server is synchronized with its upstream servers.

  • On Ubuntu, sudo iptables -L INPUT -v -n returns the default coverage is
    ACCEPT.

  • Utilizing a second Home windows PC on a distinct community (10.221.xx.xx), I’m
    capable of sync efficiently, however not utilizing the 192.168.0.x community.

Extra Particulars :

  1. Microsoft Home windows 10 Enterprise OS Model: 10.0.18362 N/A Construct
    18362 System Producer: System Mannequin: System Kind: x64-based PC
    Processor(s): 1 Processor(s) Put in.
  2. BIOS Model: American Megatrends Inc. 5.12, 05/03/2018
  3. Time on Home windows : 2024-08-19 23:22:13
  4. Time on Ubuntu : Mon 19 Aug 2024 11:54:59 PM +08 ( I had set the
    time to be jiffy behind the ubuntu to verify if the
    synchronisation is happening)
  5. Microsoft Home windows : [Version 10.0.18362.356]
  6. Enabled Home windows Time Service debug logging.(However unsure which
    messages to search for)

Any recommendation on why the Home windows PC is not syncing with the Ubuntu NTP server and continues to make use of the native CMOS clock? Are there extra configurations or diagnostics I ought to strive on the Home windows aspect? I’ve been attempting to resolve this for 1 month now and would vastly respect any assist or insights. Thanks.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles