Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
envsetup
Manage
Activity
Members
Plan
Redmine
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mediaserver
envsetup
Commits
033dc6cf
Commit
033dc6cf
authored
6 years ago
by
Stéphane Diemer
Browse files
Options
Downloads
Patches
Plain Diff
Use a configuration for NTP closer to the default one.
parent
7787f778
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
2.Common_services/2.NTP/ntp.conf
+28
-2
28 additions, 2 deletions
2.Common_services/2.NTP/ntp.conf
with
28 additions
and
2 deletions
2.Common_services/2.NTP/ntp.conf
+
28
−
2
View file @
033dc6cf
...
...
@@ -2,6 +2,8 @@
driftfile
/
var
/
lib
/
ntp
/
ntp
.
drift
# Leap seconds definition provided by tzdata
leapfile
/
usr
/
share
/
zoneinfo
/
leap
-
seconds
.
list
# Enable this if you want statistics to be logged.
#statsdir /var/log/ntpstats/
...
...
@@ -13,6 +15,18 @@ filegen clockstats file clockstats type day enable
# Specify one or more NTP servers.
{{
servers
}}
# Use servers from the NTP Pool Project. Approved by Ubuntu Technical Board
# on 2011-02-08 (LP: #104525). See http://www.pool.ntp.org/join.html for
# more information.
#pool 0.ubuntu.pool.ntp.org iburst
#pool 1.ubuntu.pool.ntp.org iburst
#pool 2.ubuntu.pool.ntp.org iburst
#pool 3.ubuntu.pool.ntp.org iburst
# Use Ubuntu's ntp server as a fallback.
#pool ntp.ubuntu.com
# Access control configuration; see /usr/share/doc/ntp-doc/html/accopt.html for
# details. The web page <http://support.ntp.org/bin/view/Support/AccessRestrictions>
# might also be helpful.
...
...
@@ -22,13 +36,16 @@ filegen clockstats file clockstats type day enable
# up blocking replies from your own upstream servers.
# By default, exchange time with everybody, but don't allow configuration.
restrict
-
4
default
kod
notrap
nomodify
nopeer
noquery
restrict
-
6
default
kod
notrap
nomodify
nopeer
noquery
restrict
-
4
default
kod
notrap
nomodify
nopeer
noquery
limited
restrict
-
6
default
kod
notrap
nomodify
nopeer
noquery
limited
# Local users may interrogate the ntp server more closely.
restrict
127
.
0
.
0
.
1
restrict
::
1
# Needed for adding pool entries
restrict
source
notrap
nomodify
noquery
# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
#restrict 192.168.123.0 mask 255.255.255.0 notrust
...
...
@@ -42,3 +59,12 @@ restrict ::1
# next lines. Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient
#Changes recquired to use pps synchonisation as explained in documentation:
#http://www.ntp.org/ntpfaq/NTP-s-config-adv.htm#AEN3918
#server 127.127.8.1 mode 135 prefer # Meinberg GPS167 with PPS
#fudge 127.127.8.1 time1 0.0042 # relative to PPS for my hardware
#server 127.127.22.1 # ATOM(PPS)
#fudge 127.127.22.1 flag3 1 # enable PPS API
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment