閱讀281 返回首頁    go iPhone_iPad_Mac_apple


OSX Sierra as ntp server

I am trying to use OSX Sierra as an NTP server for my local network.

 

This is what my /etc/ntp.conf looks like:

server time.euro.apple.com.

server 127.127.1.1

fudge 127.127.1.1 stratum 10

 

This is what my ntp-restrict.conf looks like:

# Access restrictions documented in ntp.conf(5) and

# https://support.ntp.org/bin/view/Support/AccessRestrictions

# Limit network machines to time queries only

 

 

restrict default limited kod nomodify notrap nopeer

restrict -6 default limited kod nomodify notrap nopeer

 

 

# localhost is unrestricted

restrict 127.0.0.1

restrict -6 ::1

 

 

# thunderbold connection

restrict 192.168.2.0 mask 255.255.255.0 nomodify notrap nopeer

restrict 10.51.32.0 mask 255.255.255.0 nomodify notrap nopeer

 

 

includefile /private/etc/ntp.conf

includefile /private/etc/ntp_opendirectory.conf

 

This is what i see on my network:

 

Frame 10270: 90 bytes on wire (720 bits), 90 bytes captured (720 bits) on interface 0

Ethernet II, Src: Impinj_11:19:31 (00:16:25:11:19:31), Dst: Apple_24:51:0a (38:c9:86:24:51:0a)

Internet Protocol Version 4, Src: 192.168.2.11 (192.168.2.11), Dst: 192.168.2.1 (192.168.2.1)

User Datagram Protocol, Src Port: ntp (123), Dst Port: ntp (123)

Network Time Protocol (NTP Version 4, client)

    Flags: 0xe3, Leap Indicator: unknown (clock unsynchronized), Version number: NTP Version 4, Mode: client

    Peer Clock Stratum: unspecified or invalid (0)

    Peer Polling Interval: 6 (64 sec)

    Peer Clock Precision: 0.000008 sec

    Root Delay:    0.0000 sec

    Root Dispersion:    0.0017 sec

    Reference ID: (Initialization)

    Reference Timestamp: Jan  1, 1970 00:00:00.000000000 UTC

    Origin Timestamp: Oct 24, 2017 15:48:49.599344000 UTC

    Receive Timestamp: Oct 24, 2017 14:38:31.017615000 UTC

    Transmit Timestamp: Oct 24, 2017 14:39:08.017188000 UTC

 

 

 

Frame 10271: 90 bytes on wire (720 bits), 90 bytes captured (720 bits) on interface 0

Ethernet II, Src: Apple_24:51:0a (38:c9:86:24:51:0a), Dst: Impinj_11:19:31 (00:16:25:11:19:31)

Internet Protocol Version 4, Src: 192.168.2.1 (192.168.2.1), Dst: 192.168.2.11 (192.168.2.11)

User Datagram Protocol, Src Port: ntp (123), Dst Port: ntp (123)

Network Time Protocol (NTP Version 4, server)

    Flags: 0xe4, Leap Indicator: unknown (clock unsynchronized), Version number: NTP Version 4, Mode: server

    Peer Clock Stratum: unspecified or invalid (0)

    Peer Polling Interval: 6 (64 sec)

    Peer Clock Precision: 0.000001 sec

    Root Delay:    0.0000 sec

    Root Dispersion:    0.0222 sec

    Reference ID: Unidentified reference source 'STEP'

    Reference Timestamp: Jan  1, 1970 00:00:00.000000000 UTC

    Origin Timestamp: Oct 24, 2017 14:39:08.017188000 UTC

    Receive Timestamp: Oct 24, 2017 15:49:26.599704000 UTC

    Transmit Timestamp: Oct 24, 2017 15:49:26.599770000 UTC

 

What is configured wrong here?

 

Thanks!



最後更新:2017-10-25 00:42:12

  上一篇:go How to retrieve a forgotten password on your Ma...
  下一篇:go contacts disappeared