Hi everybody,

 

I recently set up an openbsd 3.7-stable with a custom kernel firewall and
the new ntpd. As I read in the man, I wrote a ntpd.conf and a rc.conf.local
files.

 

# $OpenBSD: ntpd.conf,v 1.7 2004/07/20 17:38:35 henning Exp $

# sample ntpd configuration file, see ntpd.conf(5)

 

# Addresses to listen on (ntpd does not listen by default)

listen on ::1

 

# sync to a single server

#server ntp.example.org

server ntp.com.univ-mrs.fr

server ntp.univ-lyon1.fr

server ntp.imag.fr 

 

# use a random selection of 8 public stratum 2 servers

# see http://twiki.ntp.org/bin/view/Servers/NTPPoolServers

#servers pool.ntp.org

 

And then my rc.conf.local :

 

ntpd_flags=             # enabled during install.

 

The daemon is running (ps -aux). PF rules are correctly configured. I can
see the ntp packets passing the firewall via tcpdump.

 

The firewall local clock is correctly updated (I'll see it when I turned
ntpd in debug mode). But when I try to adjust the time on another machine of
my network, synchronisation failed each time.

 

On windows I use to way to adjust time :

 

With a small soft "abouttime", which returns the following errors :

 

Connecting to fw using SNTP.

Resolved address for fw (192.168.0.254).

Received time (ping 0 ms), error 196463160 ms.

New time: Thursday, February 07, 2036 07:28:16.

timed out waiting for fw.

 

Connecting to fw using Time/TCP.

Resolved address for fw (192.168.0.254).

Received time (ping 16 ms), error 7812740 ms.

New time: Thursday, August 11, 2005 01:44:50.

 

Connecting to fw using Time/UDP.

Resolved address for fw (192.168.0.254).

Received time (ping 0 ms), error 1227 ms.

 

The two last ways adjust with a bad time.

 

With the windows command line : net time /setsntp:fw, there is no particular
error message but the time is not adjust.

 

On FreeBSD:

 

ntpdate 4.1.0-a Mon Oct 27 14:55:20 GMT 2003 (1)

transmit(192.168.0.254)

transmit(192.168.0.254)

transmit(192.168.0.254)

transmit(192.168.0.254)

transmit(192.168.0.254)

server 192.168.0.254, port 123

stratum 0, precision 0, leap 00, trust 000

refid [0.0.0.0], delay 0.00000, dispersion 64.00000

transmitted 4, in filter 4

reference time:    00000000.00000000  Thu, Feb  7 2036  7:28:16.000

originate timestamp: 00000000.00000000  Thu, Feb  7 2036  7:28:16.000

transmit timestamp:  c6a4f464.1ff151e7  Wed, Aug 10 2005 23:47:16.124

filter delay:  0.00000  0.00000  0.00000  0.00000 

         0.00000  0.00000  0.00000  0.00000 

filter offset: 0.000000 0.000000 0.000000 0.000000

         0.000000 0.000000 0.000000 0.000000

delay 0.00000, dispersion 64.00000

offset 0.000000

 

10 Aug 23:47:17 ntpdate[10279]: no server suitable for synchronization found

 

I guess 2036 seems no response from the ntpd.

 

Does anyone can help me please?

 

Best regards,

 

--

Alexis de BRUYN

email : [EMAIL PROTECTED]

web : http://www.de-bruyn.fr

Reply via email to