在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服务才能有效工作。
相关图文阅读
频道图文推荐
健 康 咨 询
时 尚 咨 询
相关专题
- 系统优化大全 (18524篇文章)
- 系统安全设置 (24108篇文章)
- 电脑配置手册 (8585篇文章)
- 服务器配置专栏 (11161篇文章)
- 系统安装手册 (21295篇文章)
- 系统备份专题 (17939篇文章)
- Linux集群技术 (8771篇文章)
- 体验Linux的音影世界 (8441篇文章)
- Linux驱动大全 (9256篇文章)
- Linux下的路由的配置与应用 (12275篇文章)
- VMware虚拟机Linux通过NAT方式上网 (145次浏览)
- Linux“装机”一条龙 (100次浏览)
- Linux下安装VMware虚拟机的过程详解 (78次浏览)
- Linux系统命令分类详解 (1) (77次浏览)
- Linux上的偷窺裝置 (1394的使用) (67次浏览)
- Linux系统管理员秘技:用快捷命令一招制胜 (59次浏览)
- Linux服务器ADSL利用NAT实现上网共享 (56次浏览)
- 安装qmail全套功略 (55次浏览)
- TurboLinux 入门教程:第七课 TurboLinux简介 (52次浏览)
- 160G硬盘安装Windows和Linux双系统 (52次浏览)



