Gg » Historique » Version 2
Gilles Grandgérard, 03/09/2015 16:34
| 1 | 1 | Gilles Grandgérard | h1. Gg |
|---|---|---|---|
| 2 | 1 | Gilles Grandgérard | |
| 3 | 1 | Gilles Grandgérard | NTPD |
| 4 | 1 | Gilles Grandgérard | |
| 5 | 1 | Gilles Grandgérard | <pre> |
| 6 | 1 | Gilles Grandgérard | # Begin /etc/ntp.conf |
| 7 | 1 | Gilles Grandgérard | |
| 8 | 1 | Gilles Grandgérard | # Associate to the public NTP pool servers |
| 9 | 1 | Gilles Grandgérard | server 0.pool.ntp.org |
| 10 | 1 | Gilles Grandgérard | server 1.pool.ntp.org |
| 11 | 1 | Gilles Grandgérard | server 2.pool.ntp.org |
| 12 | 1 | Gilles Grandgérard | |
| 13 | 1 | Gilles Grandgérard | # Location of drift file |
| 14 | 1 | Gilles Grandgérard | driftfile /var/lib/ntp/ntpd.drift |
| 15 | 1 | Gilles Grandgérard | |
| 16 | 1 | Gilles Grandgérard | # Location of the log file |
| 17 | 1 | Gilles Grandgérard | logfile /var/log/ntpd |
| 18 | 1 | Gilles Grandgérard | |
| 19 | 1 | Gilles Grandgérard | # Location of the update directory |
| 20 | 1 | Gilles Grandgérard | ntpsigndsocket /var/lib/samba/ntp_signd/ |
| 21 | 1 | Gilles Grandgérard | |
| 22 | 1 | Gilles Grandgérard | # Restrictions |
| 23 | 1 | Gilles Grandgérard | restrict default kod limited nomodify notrap nopeer mssntp |
| 24 | 1 | Gilles Grandgérard | restrict 127.0.0.1 |
| 25 | 1 | Gilles Grandgérard | restrict ::1 |
| 26 | 1 | Gilles Grandgérard | restrict 0.pool.ntp.org mask 255.255.255.255 nomodify notrap nopeer noquery |
| 27 | 1 | Gilles Grandgérard | restrict 1.pool.ntp.org mask 255.255.255.255 nomodify notrap nopeer noquery |
| 28 | 1 | Gilles Grandgérard | restrict 2.pool.ntp.org mask 255.255.255.255 nomodify notrap nopeer noquery |
| 29 | 1 | Gilles Grandgérard | |
| 30 | 1 | Gilles Grandgérard | # End /etc/ntp.conf |
| 31 | 1 | Gilles Grandgérard | </pre> |
| 32 | 1 | Gilles Grandgérard | |
| 33 | 1 | Gilles Grandgérard | Create the state directory and set permissions: |
| 34 | 1 | Gilles Grandgérard | |
| 35 | 2 | Gilles Grandgérard | <pre> |
| 36 | 1 | Gilles Grandgérard | # install -d /var/lib/samba/ntp_signd |
| 37 | 1 | Gilles Grandgérard | # chown root:ntp /var/lib/samba/ntp_signd |
| 38 | 1 | Gilles Grandgérard | # chmod 0750 /var/lib/samba/ntp_signd |
| 39 | 2 | Gilles Grandgérard | </pre> |
| 40 | 1 | Gilles Grandgérard | |
| 41 | 2 | Gilles Grandgérard | service ntp restart |