mosestruong
October 27th, 2009, 07:33 AM
I am behind a firewall, and we have a ntp server that is synced to the outside world, I am trying to get my computer synced to this server. However, the status I get is reject, and the time is not synced.
Here is the results of ntpq when querying the server,
#ntpq -pcrv ntp
assID=0 status=06b4 leap_none, sync_ntp, 11 events, event_peer/strat_chg,
version="ntpd 4.2.2p1@1.1570-o Sat Nov 10 12:33:50 UTC 2007 (1)",
processor="i686", system="Linux/2.6.18-53.1.6.el5", leap=00, stratum=2,
precision=-20, rootdelay=772.863, rootdispersion=571.373, peer=51935,
refid=128.250.33.242,
reftime=ce910ccc.430e37a3 Tue, Oct 27 2009 16:08:12.261, poll=9,
clock=ce910e28.43982e46 Tue, Oct 27 2009 16:14:00.264, state=4,
offset=13.811, frequency=138.883, jitter=63.866, noise=18.060,
stability=1.198, tai=0
remote refid st t when poll reach delay offset jitter
================================================== ============================
+ntp.tbpl.com.au .GPS. 1 u 277 512 75 748.888 -0.211 6.754
*mumnunah.csse.u .GPS. 1 u 350 512 61 772.863 46.184 59.484
+202-89-184-139. 203.12.160.2 3 u 1249 512 114 674.257 8.241 10.285
-ds001.hostingsh 128.250.36.3 2 u 470 512 75 704.389 -10.172 17.141
203.31.84.4 128.250.33.242 2 u 96 512 353 706.836 15.704 60.259
And this is the result when querying my computer:
#ntpq -pcrv
assID=0 status=c011 sync_alarm, sync_unspec, 1 event, event_restart,
version="ntpd 4.2.4p6@1.1549-o Fri Aug 21 01:18:41 UTC 2009 (1)",
processor="x86_64", system="Linux/2.6.31-11-generic", leap=11,
stratum=16, precision=-20, rootdelay=0.000, rootdispersion=74.760,
peer=0, refid=INIT,
reftime=00000000.00000000 Thu, Feb 7 2036 16:28:16.000, poll=6,
clock=ce910e3f.8ce883cc Tue, Oct 27 2009 16:14:23.550, state=1,
offset=0.000, frequency=-10.000, jitter=0.001, noise=0.001,
stability=0.000, tai=0
remote refid st t when poll reach delay offset jitter
================================================== ============================
172.23.68.1 128.250.33.242 2 u 23 64 377 0.224 -1715.1 44.961
The associations are:
ind assID status conf reach auth condition last_event cnt
================================================== =========
1 12978 9014 yes yes none reject reachable 1
My configuration file with the comments stripped out is:
driftfile /var/lib/ntp/ntp.drift
server 172.23.68.1 iburst
restrict 172.23.68.1
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
Would anyone give me a pointer as to why it is rejecting the ntp server? Thanks.
Here is the results of ntpq when querying the server,
#ntpq -pcrv ntp
assID=0 status=06b4 leap_none, sync_ntp, 11 events, event_peer/strat_chg,
version="ntpd 4.2.2p1@1.1570-o Sat Nov 10 12:33:50 UTC 2007 (1)",
processor="i686", system="Linux/2.6.18-53.1.6.el5", leap=00, stratum=2,
precision=-20, rootdelay=772.863, rootdispersion=571.373, peer=51935,
refid=128.250.33.242,
reftime=ce910ccc.430e37a3 Tue, Oct 27 2009 16:08:12.261, poll=9,
clock=ce910e28.43982e46 Tue, Oct 27 2009 16:14:00.264, state=4,
offset=13.811, frequency=138.883, jitter=63.866, noise=18.060,
stability=1.198, tai=0
remote refid st t when poll reach delay offset jitter
================================================== ============================
+ntp.tbpl.com.au .GPS. 1 u 277 512 75 748.888 -0.211 6.754
*mumnunah.csse.u .GPS. 1 u 350 512 61 772.863 46.184 59.484
+202-89-184-139. 203.12.160.2 3 u 1249 512 114 674.257 8.241 10.285
-ds001.hostingsh 128.250.36.3 2 u 470 512 75 704.389 -10.172 17.141
203.31.84.4 128.250.33.242 2 u 96 512 353 706.836 15.704 60.259
And this is the result when querying my computer:
#ntpq -pcrv
assID=0 status=c011 sync_alarm, sync_unspec, 1 event, event_restart,
version="ntpd 4.2.4p6@1.1549-o Fri Aug 21 01:18:41 UTC 2009 (1)",
processor="x86_64", system="Linux/2.6.31-11-generic", leap=11,
stratum=16, precision=-20, rootdelay=0.000, rootdispersion=74.760,
peer=0, refid=INIT,
reftime=00000000.00000000 Thu, Feb 7 2036 16:28:16.000, poll=6,
clock=ce910e3f.8ce883cc Tue, Oct 27 2009 16:14:23.550, state=1,
offset=0.000, frequency=-10.000, jitter=0.001, noise=0.001,
stability=0.000, tai=0
remote refid st t when poll reach delay offset jitter
================================================== ============================
172.23.68.1 128.250.33.242 2 u 23 64 377 0.224 -1715.1 44.961
The associations are:
ind assID status conf reach auth condition last_event cnt
================================================== =========
1 12978 9014 yes yes none reject reachable 1
My configuration file with the comments stripped out is:
driftfile /var/lib/ntp/ntp.drift
server 172.23.68.1 iburst
restrict 172.23.68.1
restrict -4 default kod notrap nomodify nopeer noquery
restrict -6 default kod notrap nomodify nopeer noquery
restrict 127.0.0.1
restrict ::1
Would anyone give me a pointer as to why it is rejecting the ntp server? Thanks.