3.6 Configure Network Time Protocol (NTP) 'server aaa.bbb.ccc.ddd'

Information

Configuration Level : Level-I

Solution

Add the following lines to /etc/ntp.conf-# Script to fix /etc/ntp.conf
cp /etc/ntp.conf /tmp/ntp.conf.$$
egrep -v '(restrict default|restrict -6 default)' /tmp/ntp.conf.$$ > /etc/ntp.conf
ed /etc/ntp.conf << END
0a
restrict default kod nomodify nopeer notrap noquery
restrict -6 default kod nomodify nopeer notrap noquery
.
w
q
END Also, make sure /etc.ntp.conf has an NTP server specified-server <ntp-server>Note- <ntp-server> is the IP address or hostname of a trusted time server. Configuring an
NTP server is outside the scope of this benchmark.

See Also

https://workbench.cisecurity.org/files/214

Item Details

Category: AUDIT AND ACCOUNTABILITY

References: 800-53|AU-8(1), CSCv6|6.1

Plugin: Unix

Control ID: f00a968f0b26e99ab87cdf0f608fd929fafc036059dd8b6e1ecce289296c5925