ignore - deny packets of all kinds, including ntpd and ntpdc queries
kod - Kiss-of-death packets are sent which notifies the client it hit an access violation
nomodify - deny ntpq and ntpdc queries whcih attempt to modify the state of the server
noquery - deny ntpq and ntpd queries. Time service is not affected
nopeer - self-explainatory
notrap - decline to provide mode 6 control message
>vi/etc/ntp.conf
# Hosts on local network are less restricted.
restrict192.168.1.0mask255.255.255.0nomodifynotrap
Example ntp.conf
#/etc/ntp.conf
restrictdefaultkodnomodifynotrapnopeernoquery# Anyone with ipv4
addresscanqueryntp(noquery!=ignore)
restrict-6defaultignore# no one with ipv6 can query NTP
restrict192.168.0.0mask255.255.255.0nomodifynotrapnopeer
restrict192.168.0.101kodnomodifynotrap
restrict192.168.0.200
server192.168.0.2
server192.168.0.3
peer192.168.0.101