前言
NTP (Network Time Protocol) 是网络系统中用来协同时间的关键服务,它的作用就是用来同步时间
前不久网络中暴出NTP的漏洞可以被利用,详情可以参看 针对网络时间协议(NTP)的攻击将会引起巨大的麻烦 (原文) 还有 官方申明
这里描述如何对ntp进行升级,详细可以参考 官方文档
Tip: 当前版本 NTP 4.2.8p4
概要
下载
下载地址
代码语言:javascript复制[root@h101 tmp]# wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz
--2015-11-09 17:40:04-- http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz
Resolving www.eecis.udel.edu... 128.4.31.8
Connecting to www.eecis.udel.edu|128.4.31.8|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz [following]
--2015-11-09 17:40:05-- https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz
Connecting to www.eecis.udel.edu|128.4.31.8|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7104852 (6.8M) [application/x-gzip]
Saving to: “ntp-4.2.8p4.tar.gz”
100%[============================================================================================>] 7,104,852 244K/s in 31s
2015-11-09 17:40:38 (227 KB/s) - “ntp-4.2.8p4.tar.gz” saved [7104852/7104852]
[root@h101 tmp]#
对下载包进行校验
代码语言:javascript复制[root@h101 tmp]# wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz.md5
--2015-11-09 17:41:56-- http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz.md5
Resolving www.eecis.udel.edu... 128.4.31.8
Connecting to www.eecis.udel.edu|128.4.31.8|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz.md5 [following]
--2015-11-09 17:41:57-- https://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz.md5
Connecting to www.eecis.udel.edu|128.4.31.8|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 53 [application/x-gzip]
Saving to: “ntp-4.2.8p4.tar.gz.md5”
100%[============================================================================================>] 53 --.-K/s in 0s
2015-11-09 17:41:59 (4.39 MB/s) - “ntp-4.2.8p4.tar.gz.md5” saved [53/53]
[root@h101 tmp]# file ntp-4.2.8p4.tar.gz.md5
ntp-4.2.8p4.tar.gz.md5: ASCII text
[root@h101 tmp]# cat ntp-4.2.8p4.tar.gz.md5
6af96862b09324a8ef965ca76b759c8b ntp-4.2.8p4.tar.gz
[root@h101 tmp]# md5sum ntp-4.2.8p4.tar.gz
6af96862b09324a8ef965ca76b759c8b ntp-4.2.8p4.tar.gz
[root@h101 tmp]#