


Linux系統(tǒng)下NTP服務(wù)的配置注意事項
添加時間:2011-2-24
添加:
admin
在Linux下NTP的標準配置中,許多關(guān)于同步的方式不同,注意以下事項:
如果不想讓其它任何服務(wù)器訪問本機的NTP服務(wù):此配置也將造成本地的NTP無法訪問外部的NTP服務(wù):
If you want to deny all machines from accessing your NTP server, add the following line to /etc/ntp.conf:
restrict default ignore
如果允許本地的服務(wù)器訪問本機的NTP服務(wù),配置如下:
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服務(wù)才能有效工作。
關(guān)鍵字:NTP服務(wù)、配置、服務(wù)器
新文章:
- CentOS7下圖形配置網(wǎng)絡(luò)的方法
- CentOS 7如何添加刪除用戶
- 如何解決centos7雙系統(tǒng)后丟失windows啟動項
- CentOS單網(wǎng)卡如何批量添加不同IP段
- CentOS下iconv命令的介紹
- Centos7 SSH密鑰登陸及密碼密鑰雙重驗證詳解
- CentOS 7.1添加刪除用戶的方法
- CentOS查找/掃描局域網(wǎng)打印機IP講解
- CentOS7使用hostapd實現(xiàn)無AP模式的詳解
- su命令不能切換root的解決方法
- 解決VMware下CentOS7網(wǎng)絡(luò)重啟出錯
- 解決Centos7雙系統(tǒng)后丟失windows啟動項
- CentOS下如何避免文件覆蓋
- CentOS7和CentOS6系統(tǒng)有什么不同呢
- Centos 6.6默認iptable規(guī)則詳解