summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-12-22 11:27:00 -0300
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-12-23 11:36:19 +0100
commite3c2e7c7ed90e7930c934bcd9b43669a330a305a (patch)
tree8988003f23de9f03cf1715ed3e9c54ffb4878968
parent5d5c9a8dcb1f3385e70a2e089f6577c67eca59c3 (diff)
downloadbuildroot-e3c2e7c7ed90e7930c934bcd9b43669a330a305a.tar.gz
buildroot-e3c2e7c7ed90e7930c934bcd9b43669a330a305a.zip
ntp: update sample config
Drop redundant IP version and double default restrict. Tweak KoD and other defaults for properness. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/ntp/ntpd.etc.conf8
1 files changed, 4 insertions, 4 deletions
diff --git a/package/ntp/ntpd.etc.conf b/package/ntp/ntpd.etc.conf
index 6a2b88cbd7..543c8ff820 100644
--- a/package/ntp/ntpd.etc.conf
+++ b/package/ntp/ntpd.etc.conf
@@ -1,8 +1,8 @@
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
-restrict default kod nomodify notrap nopeer noquery
-restrict -6 default kod nomodify notrap nopeer noquery
-
+# Allow only time queries, at a limited rate, sending KoD when in excess.
+# Allow all local queries (IPv4, IPv6)
+restrict default nomodify nopeer noquery limited kod
restrict 127.0.0.1
-restrict -6 ::1
+restrict [::1]
OpenPOWER on IntegriCloud