ubuntu下配置NTP Server注意地方

1./etc/ntp.conf 文件是Linux NTP的主要配置文件,你可以设置NTP服务器的ip地址。
2.有些时候除非取消notrust、nomodify、notrap配置,client段的ntp服务才能有效工作。

我的ntp.conf内容:

     driftfile /var/lib/ntp/ntp.drift

     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 ntp.ubuntu.com

     restrict -4 default kod notrap nomodify nopeer noquery

     restrict -6 default kod notrap nomodify nopeer noquery

     restrict 127.0.0.1

     restrict ::1

     restrict 192.168.0.1 mask 255.255.255.0 nomodify notrap nopeer


参考网站:
http://www.eecis.udel.edu/~mills/ntp/html/accopt.html
http://support.ntp.org/bin/view/Support/AccessRestrictions
http://wiki.ubuntu.org.cn/Quick_HOWTO_:_Ch24_:_The_NTP_Server/zh

posted on 2011-08-05 08:57  中国蓝天  阅读(2244)  评论(0编辑  收藏  举报

导航