[ntp:questions] Q: Is there a simple tutorial, how to use authentication with ntp?

Jan Trebisch jan_nospam at oleco.net
Tue Oct 31 13:31:32 UTC 2006


Hi everybody,

I wanted to use NTP in my home network, so I configured my (linux) router,
to get its time from "pool.ntp.org" (in fact, I used more or less the ntp.conf
file provided with my debian package).
I chose "broadcasting" for my home network, and for now I use the configuration
"disable auth" for all my clients.

my "clients have the following ntp.conf-file:
>>>>>>>>>>>>>>
# /etc/ntp.conf, configuration for ntpd

disable auth
broadcastclient

driftfile /var/lib/ntp/ntp.drift
<<<<<<<<<<<<<

and the "server" this:
>>>>>>>>>>>>>
# /etc/ntp.conf, configuration for ntpd

disable auth

driftfile /var/lib/ntp/ntp.drift
statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server pool.ntp.org

server 127.127.1.0
fudge 127.127.1.0 stratum 10

restrict 192.168.98.0  mask  255.255.255.0 
broadcast 192.168.98.255
<<<<<<<<<<<<<


Is there somewhere a short tutorial, what to do to use authentication in my
home network? (so, esp. how to generate /etc/ntp.keys or /var/lib/ntp/ntp.keys,
what to put in there etc.)

Somehow I didn't understand the official ntp documentation :-/
(I tried "ntp-keygen", but this generated 4 files, and I have no clue, what to
do with this ...)


Regards, Jan




More information about the questions mailing list