Linux系统下Linux系统下NTP服务器注意事项

2008-04-18 07:51:41 北京时间
在Linux下NTP的标准配置中,许多关于同步的方式不同,注意以下事项:

    如果不想让其它任何服务器访问本机的NTP服务:此配置也将造成本地的NTP无法访问外部的NTP服务:

    If you want to deny all machines from accessing your NTP server, add the following line to /etc/ntp.conf:

    restrict default ignore

    如果允许本地的服务器访问本机的NTP服务,配置如下:

    If you only want to allow machines within your own network to synchronize their clocks with your server, but ensure they are not allowed to configure the server or used as peers to synchronize against, add

    restrict 192.168.1.0 mask 255.255.255.0 nomodify(限制修改) notrap(限制trap) noquery(限制查询) 注:应当解除noquery

    其中default为0.0.0.0/0

    restrict default nomodify notrap

    有些情况下,除非取消notrust/nomodify/notrap配置,client段的ntp服务才能有效工作。




最新图文资讯

发表评论

请文明参与讨论,禁止漫骂攻击。本站保留不刊登无关和不雅评论的权力。


用户名: 密码: 匿名

相关新闻
很多情况下,某个 IP 的访问很容易造成 CPU 100% (比如 某些搜
实现了Apache多用户的虚拟主机设置,那么一般这些用户都会选择用
别的不多说.单说安装VPN. 按以下的操作 复制内容到剪贴板 代码:
原Windows rar压缩的文件,Linux系统下解压后打开里边的文件,内
rpm -q:查询软件包是否被安装 rpm -qa:查询并显示系统中已安装

广告
© 2008 The Czz5 Company. All Rights Reserved. 关于我们 - 联系我们 - 广告业务 - 网站地图 - 版权声明 - 友情连接 - 网站投稿 - 致信编辑