{"id":39,"date":"2008-08-26T09:24:14","date_gmt":"2008-08-26T07:24:14","guid":{"rendered":"http:\/\/wp1.fredptitgars.net\/index.php\/2008\/08\/26\/config-ntp-client-et-serveur\/"},"modified":"2008-08-26T09:24:14","modified_gmt":"2008-08-26T07:24:14","slug":"config-ntp-client-et-serveur","status":"publish","type":"post","link":"https:\/\/fredptitgars.ovh\/?p=39","title":{"rendered":"config ntp client et serveur"},"content":{"rendered":"<h2>Le Serveur<\/h2>\n<p>Les sources c&rsquo;est l\u00e0:<br \/>\n<a href=\"http:\/\/www.serveur-de-temps.fr\/\">http:\/\/www.serveur-de-temps.fr\/<\/a><\/p>\n<p>Pour le serveur on install ntp:<br \/>\n<code><br \/>\napt-get install ntp<br \/>\n<\/code><\/p>\n<p>Le fichier de configuration se trouve dans  \/etc\/ntp.conf<br \/>\n<code><br \/>\n# \/etc\/ntp.conf, configuration for ntpd; see ntp.conf(5) for help<\/p>\n<p>driftfile \/var\/lib\/ntp\/ntp.drift<\/p>\n<p># Enable this if you want statistics to be logged.<br \/>\n#statsdir \/var\/log\/ntpstats\/<\/p>\n<p>statistics loopstats peerstats clockstats<br \/>\nfilegen loopstats file loopstats type day enable<br \/>\nfilegen peerstats file peerstats type day enable<br \/>\nfilegen clockstats file clockstats type day enable<\/p>\n<p># You do need to talk to an NTP server or two (or three).<br \/>\nserver ntp.ubuntu.com<br \/>\nserver ntp.univ-reims.fr<\/p>\n<p># Access control configuration; see \/usr\/share\/doc\/ntp-doc\/html\/accopt.html for<br \/>\n# details.  The web page <http:\/\/support.ntp.org\/bin\/view\/Support\/AccessRestrictions><br \/>\n# might also be helpful.<br \/>\n#<br \/>\n# Note that \"restrict\" applies to both servers and clients, so a configuration<br \/>\n# that might be intended to block requests from certain clients could also end<br \/>\n# up blocking replies from your own upstream servers.<\/p>\n<p># By default, exchange time with everybody, but don't allow configuration.<br \/>\nrestrict -4 default kod notrap nomodify nopeer noquery<br \/>\nrestrict -6 default kod notrap nomodify nopeer noquery<\/p>\n<p># Local users may interrogate the ntp server more closely.<br \/>\nrestrict 127.0.0.1<br \/>\nrestrict ::1<\/p>\n<p># Clients from this (example!) subnet have unlimited access, but only if<br \/>\n# cryptographically authenticated.<br \/>\n#restrict 192.168.123.0 mask 255.255.255.0 notrust<\/p>\n<p># If you want to provide time to your local subnet, change the next line.<br \/>\n# (Again, the address is an example only.)<br \/>\n#broadcast 192.168.123.255<\/p>\n<p># If you want to listen to time broadcasts on your local subnet, de-comment the<br \/>\n# next lines.  Please do this only if you trust everybody on the network!<br \/>\n#disable auth<br \/>\n#broadcastclient<\/p>\n<p><\/code><\/p>\n<p>J&rsquo;ai ajouter le serveur de reims, car il est toujours bon d&rsquo;avoir au moins 2 serveurs de temps<\/p>\n<h2>Le Client<\/h2>\n<p>Le paquet ntp est install\u00e9 par default<\/p>\n<p>Le fichier de config:<br \/>\n\/etc\/default\/ntpdate<\/p>\n<p>NTPDATE_USE_NTP_CONF=yes<\/p>\n<p>par default ntp conf est \u00e0 oui donc j&rsquo;ai cr\u00e9\u00e9 le fichier<br \/>\n<br \/>\/etc\/ntp.conf<\/p>\n<p>son contenu:<\/p>\n<p><code><br \/>\nserver ntp.ubuntu.com<br \/>\nserver pool.ntp.org<br \/>\n<\/code><\/p>\n<p>M\u00eame sans le fichier \/etc\/ntp.conf, le syst\u00e8me se met \u00e0 jour<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Le Serveur Les sources c&rsquo;est l\u00e0: http:\/\/www.serveur-de-temps.fr\/ Pour le serveur on install ntp: apt-get install ntp Le fichier de configuration se trouve dans \/etc\/ntp.conf # \/etc\/ntp.conf, configuration for ntpd; see ntp.conf(5) for help driftfile \/var\/lib\/ntp\/ntp.drift # Enable this if you want statistics to be logged. #statsdir \/var\/log\/ntpstats\/ statistics loopstats peerstats clockstats filegen loopstats file loopstats [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-39","post","type-post","status-publish","format-standard","hentry","category-poweredge-t105"],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts\/39","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39"}],"version-history":[{"count":0,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=\/wp\/v2\/posts\/39\/revisions"}],"wp:attachment":[{"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fredptitgars.ovh\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}