@@ -63,6 +63,12 @@
echo "server ptbtime2.ptb.de" >> /etc/ntp.conf
echo "server ptbtime3.ptb.de" >> /etc/ntp.conf
echo "multicastclient" >> /etc/ntp.conf
+echo "restrict 127.0.0.1" >> /etc/ntp.conf
+echo "restrict -6 ::1" >> /etc/ntp.conf
+echo "restrict ptbtime1.ptb.de nomodify notrap nopeer noquery" >> /etc/ntp.conf
+echo "restrict ptbtime2.ptb.de nomodify notrap nopeer noquery" >> /etc/ntp.conf
+echo "restrict ptbtime3.ptb.de nomodify notrap nopeer noquery" >> /etc/ntp.conf
+echo "disable monitor" >> /etc/ntp.conf
# enable initial time sync on startup
sed -i 's,NTPD_FORCE_SYNC_ON_STARTUP=.*,NTPD_FORCE_SYNC_ON_STARTUP="yes",' /etc/sysconfig/ntp
|