I've been trying to get ntp to work, but ntpd can't connect to peers. The only way I can set my system time with ntp is by using ntpdate -u, even when ipfilter is disabled.
Here is my ntp.conf file: driftfile /var/ntp/ntp.drift server ac-ntp1.net.cmu.edu server 0.north-america.pool.ntp.org iburst server 1.north-america.pool.ntp.org iburst server 2.north-america.pool.ntp.org iburst server north-america.pool.ntp.org iburst logconfig=allsync +allclock +sysevents logfile /var/ntp/ntp.log And this is what ntpq -p produces: remote refid st t when poll reach delay offset jitter ============================================================================== AC-NTP1.net.cmu .INIT. 16 u - 256 0 0.000 0.000 0.000 twik.stonekitty .INIT. 16 u - 512 0 0.000 0.000 0.000 ox.eicat.ca .INIT. 16 u - 512 0 0.000 0.000 0.000 lime7.adamantsy .INIT. 16 u - 512 0 0.000 0.000 0.000 mighty.poclabs. .INIT. 16 u - 512 0 0.000 0.000 0.000 None of the peers is ever reached. I have my OpenSolaris system set up as a gateway, so that it has one interface hooked up to my cable modem, to connect to the Internet, and the other interface connected to my local network switch. Other machines on my local network reach the Internet through ipnat. Now, the funny thing is that ntpd works fine on a computer running openSUSE that gets on the Internet through my osol box. Here is what ntpq -p produces on it: remote refid st t when poll reach delay offset jitter ============================================================================== *AC-NTP1.net.cmu 128.237.148.140 2 u - 64 377 34.763 -14.648 59.300 +socorro.dayww.n 132.163.4.103 2 u 49 64 377 67.823 -13.876 55.335 +mickey.linocomm 146.164.48.5 2 u 36 64 377 121.589 16.194 38.665 +zeus.yocum.org 193.79.237.14 2 u 22 64 377 58.006 -19.036 26.897 +ntp.clt.sharefi 198.82.1.203 3 u 24 64 377 29.918 0.697 23.649 ntpd.conf on my Linux box is exactly the same. In both cases I've had ntpd running for about ten minutes. (The reason the last four peers are different in the two cases is that they come from a pool, kept in Internet addresses of the form pool.ntp.org.) I compiled ntpd on osol myself, but the behavior remains the same as with the official binary: it can't connect to any peers. I don't believe this has anything to do with authentication, since my understanding is that authentication is not required unless you specify it in ntp.conf. I'm running OpenSolaris snv_121 X86. On both machines I start ntp with "ntpd -d". Comparing the output from ntpd on the console, in both cases, one sees that on the osol box, no replies are ever received. On the Linux box, transmits are followed by receives: transmit: at 855 192.168.1.2->174.133.44.162 mode 3 receive: at 855 192.168.1.2<-174.133.44.162 mode 4 code 1 auth 0 Whereas on the osol box, they are not: transmit: at 2 24.144.XXX.XXX->66.102.79.92 mode 3 len 48 transmit: at 3 24.144.XXX.XXX->64.73.32.134 mode 3 len 48 transmit: at 4 24.144.XXX.XXX->66.250.45.2 mode 3 len 48 Any help here would be much appreciated. -- This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org