summaryrefslogtreecommitdiff
path: root/factory-default
diff options
context:
space:
mode:
Diffstat (limited to 'factory-default')
-rw-r--r--factory-default/net-misc/ntp/etc/ntp.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/factory-default/net-misc/ntp/etc/ntp.conf b/factory-default/net-misc/ntp/etc/ntp.conf
new file mode 100644
index 00000000..98e99538
--- /dev/null
+++ b/factory-default/net-misc/ntp/etc/ntp.conf
@@ -0,0 +1,30 @@
+# Send log to syslog
+logconfig =all
+
+# Drift file location
+driftfile /var/lib/ntp/drift
+
+# Upstream NTP servers
+server 0.pool.ntp.org
+server 1.pool.ntp.org
+server 2.pool.ntp.org
+server 3.pool.ntp.org
+
+# Fallback to localhost if no upstream server is available
+server 127.127.1.0
+fudge 127.127.1.0 stratum 10
+
+# kod: Send a kiss-of-death packet if request is denied
+# nomodify: Ignore all NTP packets which attempt to modify runtime
+# reconfiguration
+# notrap: Decline requests for remote event logging
+# noquery: Ignore all NTP packets (information queries
+# and configuration requests). Time service is not affected.
+# nopeer: Deny packets which would result in mobilizing a new
+# association
+restrict -4 default kod nomodify notrap noquery nopeer
+restrict -6 default kod nomodify notrap noquery nopeer
+
+# Allow unrestricted access from localhost
+restrict 127.0.0.1
+restrict ::1