Ubuntu Server Guide
Serve the Network Time Protocol
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
- Bu sahifa navigatsiya:
- Installation
- Chronyd Configuration
- Serving the NTP Protocol
Serve the Network Time Protocol
If in addition to synchronizing your system you also want to serve NTP information you need an NTP server. There are several options with chrony, ntpd and open-ntp. The recommended solution is chrony. chrony(d) The NTP daemon chronyd calculates the drift and offset of your system clock and continuously adjusts it, so there are no large corrections that could lead to inconsistent logs for instance. The cost is a little processing power and memory, but for a modern server this is usually negligible. Installation To install chrony, from a terminal prompt enter: sudo apt i n s t a l l chrony This will provide two binaries: • chronyd - the actual daemon to sync and serve via the NTP protocol • chronyc - command-line interface for chrony daemon Chronyd Configuration Edit /etc/chrony/chrony.conf to add/remove server lines. By default these servers are configured: # Use s e r v e r s from t h e NTP Pool P r o j e c t . Approved by Ubuntu T e c h n i c a l Board # on 2011−02−08 (LP : #104525) . See h t t p : / /www. p o o l . ntp . o r g / j o i n . html f o r # more i n f o r m a t i o n . p o o l 0 . ubuntu . p o o l . ntp . o r g i b u r s t p o o l 1 . ubuntu . p o o l . ntp . o r g i b u r s t p o o l 2 . ubuntu . p o o l . ntp . o r g i b u r s t p o o l 3 . ubuntu . p o o l . ntp . o r g i b u r s t See man chrony.conf for more details on the configuration options. After changing the any of the config file you have to restart chrony: sudo s y s t e m c t l r e s t a r t chrony . s e r v i c e Of the pool 2.ubuntu.pool.ntp.org as well as ntp.ubuntu.com also support ipv6 if needed. If one needs to force ipv6 there also is ipv6.ntp.ubuntu.com which is not configured by default. Serving the NTP Protocol You can install chrony (above) and configure special Hardware (below) for a local synchronization and as- installed that is the default to stay on the secure and conservative side. But if you want to serve NTP you need adapt your configuration. To enable serving the NTP protocol you’ll need at least to set the allow rule to which controls which clients/networks you want chrony to serve NTP to. An example would be a l l o w 1 . 2 . 3 . 4 61 See the section “NTP server” in the man page for more details on how you can control and restrict access to your NTP server. Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling