jlevie,
Thanks for the information. However I have tried that, as soon as I restart the ntpxd, the daemon will do the same thing. I never had same problem with Solaris 8 environment.
Main Topics
Browse All TopicsHelper,
How can I correctly implement Solaris 9 NTP client on a Sun server? I did exactly as Sun document said but the ntpxd daemon running and it listens on port 123 on all network interfaces, which makes our security guy unhappy. Please advise.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you don't need to serve as UTC reference for other hosts you could use "ntpdate" running periodically from cron instead.
(1-2 hour interval)
Note that you would still want to use several references to avoid being fooled by a really insane ntp server.
ntpdate will set the system time regardless.. whereas xntpd won't do anything if the system time differs enough from the UTC.
/b
The correct way would be the way that keeps your system time ~correct.
Do you often loose connectivity to the Internet for long periods (dialup connection?), and you want to rely on the drift estimation maintained by ntpd rather then steping the time in larger chunks when ntpdate reaches a server again?
Or do you need to provide UTC for other internal hosts via this server as well (bypassing the firewall or whatever)?
I see no other real reason for using ntpd instead of ntpdate.. unless of course you are running a Sun cluster.
Anyway, the options you have seems to be
a) Filter the ports using a firewall software (e.g SunScreen or IPfilter)
b) Accept that port 123/udp accepts packets, and configure ntpd to _not_ send packets to _all_ IP addresses on the "other" interfaces.
(it's all in the man page about interface restrictions)
c) continue using ntpdate
To keep my servers time in sync, I use the following:
/usr/sbin/ntpdate nist1.datum.com time.nist.gov time-a.nist.gov
you can add this to cron and have it run every hour:
0 * * * * /usr/sbin/ntpdate nist1.datum.com time.nist.gov time-a.nist.gov > /dev/null 2>&1
it works just as good and there is no need to open up your firewall.
Here is a good website for all the NIST atomic clocks you can add on the list
http://www.boulder.nist.go
they say the more servers you query, the more accurate your clock will be.
Hope this helps.
Yes, it's the way Coordinated Universal Time (UTC) protocol works. The more the merrier...
All reasonable correct servers are used to calculate an average time (network latency is taken into account).
If using ntpd to synch the clock you may use ntpq to query and set parameters for the local daemon.
E.g to list the configured peers with some status indications, you would issue the command "peers" in ntpq interactive mode, or say "ntpq -c peers" in the shell prompt.
There will be a sign in the left margin (+,-,*,x) that tell if the peers reference is being used to calculate the time in your server or not.
+ means the server is included, * is for the prefered choice (best offset in relation to network latency I think), - and x is for peers out of synch or with bad network connectivity (at least they're not used for some reason or another)
You'd defenately have better control over the situation using the daemon considering you can make some checks using ntpq.
Also, remeber to notify the admin of the servers you intend to use, and don't use the server unless you have got an OK back.
Heavily loaded servers have less chance of providing accurate reference, thus weakening the entrie idea of NTP... keep the admin informed so he/she can scale the service as appropriate (or tell you to go elsewhere)
Im not sure I understand your question.
ntp is working, right, clock is adjusting ?
But you say "it listens on ALL interfaces on port 123",
that´s not true.
Running as a multicastclient it listens on address
224.0.1.1 and this adressclass is only assigned to
the primary interface.
Run netstat -rn to see the routingtable.
When running as a broadcastclient it listens for the
hosts net.255 address which also are on the primary
interface.
I have a mixed env. with Solaris 7,8,9 Linux, XP, Me
and BSD and it works pretty well, hm, forget Me and XP.
Why bother trying.
If your sysadm is that focused on security, make sure you
use encryption on clients. See man xntpd
HTH
Business Accounts
Answer for Membership
by: jleviePosted on 2003-05-29 at 13:54:38ID: 8609056
It sounds like you've configured NTP to be a multicast client. It is just as easy to configure the client to poll a specific NTP server(s) by having something like:
server 111.222.333.444 prefer
in /etc/inet/ntp.conf