ntpd on a NAT gateway seems to do nothing

Peter Jeremy peterjeremy at optushome.com.au
Tue Jul 24 19:24:28 UTC 2007


On 2007-Jul-24 16:00:08 +0100, Pete French <petefrench at ticketswitch.com> wrote:
>at least I cannot see anything wrong). I would assume that ntpdate
>also uses UDP - and using that I can see all these servers ?

Yes it does.  The major difference is that ntpd will use a source
port of 123 whilst ntpdate will use a dynamic source port.

Is it possible that your NAT rules are interfering with ntpd using
port 123?  Can you check that ntpd is binding to port 123 (using
lsof or netstat+fstat).  As well as tcpdump'ing the NTP traffic,
you might like to ktrace ntpd and verify that incoming packets
are actually arriving there.

If your NAT box is not busy, you might be able to enable logging on
som relevant rules and see what your firewall is actually doing
with the packets.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20070724/56e58151/attachment.pgp


More information about the freebsd-stable mailing list