diff options
author | Bertrand Jacquin <bertrand@jacquin.bzh> | 2016-11-25 00:27:39 +0000 |
---|---|---|
committer | Bertrand Jacquin <bertrand@jacquin.bzh> | 2016-11-25 03:47:37 +0000 |
commit | 3aeedb6cf415d727b3d0a85e84299762f9d09823 (patch) | |
tree | 2876da69e14ef83688aceade0ce31894ab61ed18 | |
parent | profiles/common: Disable smartcard USE flag globally (diff) | |
download | portage-3aeedb6cf415d727b3d0a85e84299762f9d09823.tar.xz |
factory-default/net-misc/ntp: Add defaault ntp configuration
-rw-r--r-- | factory-default/net-misc/ntp/etc/ntp.conf | 30 |
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 |