Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Oct 2015 18:00:47 -0400
From:      David Magda <dmagda@ee.ryerson.ca>
To:        Marcin Wisnicki <mwisnicki+freebsd@gmail.com>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Can't get ntp to work
Message-ID:  <A7753C8E-4F5A-42E7-9DF6-686C3BDCCB0F@ee.ryerson.ca>
In-Reply-To: <n001r3$oql$1@ger.gmane.org>
References:  <n001r3$oql$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Oct 18, 2015, at 08:03, Marcin Wisnicki =
<mwisnicki+freebsd@gmail.com> wrote:
>=20
> My ntpd stopped synchronizing clock sometime ago (default ntp.conf).
>=20
> To debug the problem I've tried running ntpdate and got strange =
results:
>=20
>> # ntpdate 0.freebsd.pool.ntp.org
>> 18 Oct 13:53:14 ntpdate[55102]: no server suitable for =
synchronization found
>> =09
>> # ntpdate -u 0.freebsd.pool.ntp.org
>> 18 Oct 13:53:19 ntpdate[55119]: adjust time server 193.25.222.240 =
offset 0.002672 sec
>=20
>=20
> This would point to broken firewall BUT:
>=20
>> # nmap -p123 -sU 0.freebsd.pool.ntp.org
>>=20
>> Starting Nmap 6.49BETA5 ( https://nmap.org ) at 2015-10-18 13:52 CEST
>> Nmap scan report for 0.freebsd.pool.ntp.org (193.25.222.240)
>> Host is up (0.027s latency).
>> Other addresses for 0.freebsd.pool.ntp.org (not scanned): 94.154.96.7 =
95.158.95.123 46.175.224.7
>> rDNS record for 193.25.222.240: afrodyta.complex.net.pl
>> PORT    STATE SERVICE
>> 123/udp open  ntp
>>=20
>> Nmap done: 1 IP address (1 host up) scanned in 0.64 seconds
>=20
> So there is nothing blocking the traffic.
>=20
> Any ideas ?

Both =E2=80=9Cnmap" and =E2=80=9Cntpdate -u=E2=80=9D would use an =
unprivileged, ephemeral port, while ntpd(8) and a regular run of =
ntpdate(8) would use UDP 123 as the source port. Perhaps there is a =
firewall issue with source ports lower than 1024?




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?A7753C8E-4F5A-42E7-9DF6-686C3BDCCB0F>