Linux下NTP服务的配置注意事项
发布时间:2008-06-13 22:52:03 来源:友佳学院搜集整理 网友评论 0 条 在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服务才能有效工作。
如果不想让其它任何服务器访问本机的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服务才能有效工作。
- 推荐阅讯
- 惠普服务器安装Redhat Linux 6.2/7.0的小窍
- 深入探讨Linux与微软在桌面上的较量
- 软件路由器coyote linux安装使用指南(图解)
- 如何让非root用户启用小于1024号的端口
- 外资挺进 国产Linux越保护越脆弱?
- Linux操作系统配置Vsftp的方法
- 更好无线支持 Linux内核升级2.6.17
- 安装Linux系统后如何安装Windows?
- 单机双Linux系统的安装
- RedHat Linux9.0安装实例(1)
- 阅读排行
- 1.Windows外衣Linux心 红旗桌面版详测
- 2.扮酷你的桌面 Linux超靓壁纸下载(多图)
- 3.Linux安装流程
- 4.浅谈Linux的内核
- 5.RedHat Linux9.0安装实例(1)
- 6.ARM的嵌入式Linux移植体验之基本概念
- 7.Linux安装要点
- 8.红旗Linux桌面版5.0BETA版OS
- 9.如何在大硬盘上安装Linux
- 10.RealPlayer流媒体播放器Linux版
- 专题教程
- Windows Server-Windows Server文档-Windows Server新闻-Windows Ser PostgreSQL-PostgreSQL文档-PostgreSQL新闻-PostgreSQL专家
- WebLogic-WebLogic文档-WebLogic新闻-WebLogic专家 FreeBSD-FreeBSD文档-FreeBSD新闻-FreeBSD专家
- Linux-内核 GUI KDE Gnome DNS FTP 安全 安装-Linux专区 Windows-AD IIS ServerCore 虚拟化 安全 HPC-Windows专区
- 大话G游 专题:手机病毒揭密
- ARP攻击防范与解决方案 路由故障处理手册
