simple local auth howto.

1. add following lines to ntp.conf
restrict default nomodify notrap nopeer
restrict 127.0.0.1
keys /etc/ntp.keys
trustedkey 1
requestkey 1
controlkey 1

2. make /etc/ntp.keys like this.
1 M yourpassword

3. restart ntpd, run ntpdc and test it.
# ntpdc
ntpdc> addserver pool.ntp.org
Keyid: 1
MD5 Password: yourpassword
done!
ntpdc>

for more info on authentication, see ntp faq.
http://www.ntp.org/ntpfaq/NTP-s-config.htm#Q-CONF-REMOTE-ADMIN
http://www.ntp.org/ntpfaq/NTP-s-config-adv.htm#S-CONFIG-ADV-AUTH

 - Jay
_______________________________________________
timekeepers mailing list
[email protected]
https://fortytwo.ch/mailman/cgi-bin/listinfo/timekeepers

Reply via email to