Précédent   Forum des professionnels en informatique > Systèmes > Linux > Distributions > Ubuntu
Ubuntu Vos questions sur les distributions Ubuntu et dérivées (Kubuntu, Xubuntu... )
Partagez cette discussion sur d'autres réseaux sociaux : Viadeo Twitter Google Facebook Digg Delicious MySpace Yahoo
Réponse Proposer ce sujet en actualité
 
Outils de la discussion
Publicité
'
Vieux 17/11/2011, 15h23   #1
Membre Expert
 
Avatar de Jon Shannow
 
Homme
Responsable de service informatique
Inscription : avril 2011
Messages : 786
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Ille et Vilaine (Bretagne)

Informations professionnelles :
Activité : Responsable de service informatique
Secteur : High Tech - Électronique et micro-électronique

Informations forums :
Inscription : avril 2011
Messages : 786
Points : 1 030
Points : 1 030
Par défaut Problème de ntp

Bonjour,

J'ai un serveur Ubuntu 10.04 et je voudrais qu'il se synchronise à un serveur ntp.

J'ai installé ntpd et configurer le ntp.conf mais rien ne se passe !
Et si je fais un ntpdate -dv fr.pool.ntp.org j'obtiens le message suivant.
Échec de la synchronisation NTP de l'heure et de la date : 17 Nov 14:58:12 ntpdate[8592]: no server suitable for synchronization found

quelqu'un peut-il m'aider ?

Voici le fichier ntp.conf
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# /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 type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
 
 
# You do need to talk to an NTP server or two (or three).
#server ntp.ubuntu.com
server 0.fr.pool.ntp.org
server 1.fr.pool.ntp.org
server 2.fr.pool.ntp.org
server 3.fr.pool.ntp.org
 
 
# 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.
#
# Note that "restrict" applies to both servers and clients, so a configuration
# that might be intended to block requests from certain clients could also end
# 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
 
# Local users may interrogate the ntp server more closely.
restrict 127.0.0.1
restrict ::1
 
# Clients from this (example!) subnet have unlimited access, but only if
# cryptographically authenticated.
restrict 192.168.0.0 mask 255.255.255.0 notrust
 
 
# If you want to provide time to your local subnet, change the next line.
# (Again, the address is an example only.)
#broadcast 192.168.123.255
 
# If you want to listen to time broadcasts on your local subnet, de-comment the
# next lines.  Please do this only if you trust everybody on the network!
#disable auth
#broadcastclient
#listen on *
Voilà si quelqu'un a une idée ou une explication,

merci d'avance.

JS
Jon Shannow est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 18/11/2011, 04h09   #2
Expert Confirmé Sénior
 
Homme Laurent Willems
Expert Stop/Start
Inscription : septembre 2002
Messages : 2 551
Détails du profil
Informations personnelles :
Nom : Homme Laurent Willems
Âge : 33
Localisation : Belgique

Informations professionnelles :
Activité : Expert Stop/Start

Informations forums :
Inscription : septembre 2002
Messages : 2 551
Points : 4 271
Points : 4 271
Salut,

parviens-tu à pinguer le serveur de temps en question?

Code :
1
2
 
ping fr.pool.ntp.org
__________________
Alea Jacta Test!
Mygale1978 est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 18/11/2011, 08h18   #3
Membre Expert
 
Avatar de Jon Shannow
 
Homme
Responsable de service informatique
Inscription : avril 2011
Messages : 786
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Ille et Vilaine (Bretagne)

Informations professionnelles :
Activité : Responsable de service informatique
Secteur : High Tech - Électronique et micro-électronique

Informations forums :
Inscription : avril 2011
Messages : 786
Points : 1 030
Points : 1 030
Bonjour,

Et merci de te pencher sur mon problème.

La réponse à ta question est "oui". Le ping sur le serveur fonctionne très bien.

Mais dois-je tenter le ping via le port 123 (port ntp) et si oui, comment je précise le port dans le ping ?

JS
Jon Shannow est déconnecté   Envoyer un message privé Réponse avec citation 10
Vieux 18/11/2011, 12h40   #4
Expert Confirmé Sénior
 
Homme Laurent Willems
Expert Stop/Start
Inscription : septembre 2002
Messages : 2 551
Détails du profil
Informations personnelles :
Nom : Homme Laurent Willems
Âge : 33
Localisation : Belgique

Informations professionnelles :
Activité : Expert Stop/Start

Informations forums :
Inscription : septembre 2002
Messages : 2 551
Points : 4 271
Points : 4 271
Salut,

Pour savoir si c'est un service est disponible sur un port spécifique tu peux utiliser un scanneur de ports comme nmap.

De mon côté, si je scanne les ports udp sur le serveur 0.fr.pool.ntp.org. Je vois bien que le port udp 123 est ouvert.

Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
sudo nmap -sU 0.fr.pool.ntp.org

Starting Nmap 5.00 ( http://nmap.org ) at 2011-11-18 12:28 CET
Warning: Hostname 0.fr.pool.ntp.org resolves to 3 IPs. Using 194.57.169.1.
Interesting ports on ntp.univ-angers.fr (194.57.169.1):
Not shown: 994 closed ports
PORT      STATE         SERVICE
123/udp   open|filtered ntp
161/udp   open|filtered snmp
500/udp   open|filtered isakmp
514/udp   open|filtered syslog
520/udp   open|filtered route
49152/udp open|filtered unknown

Peux-tu synchroniser avec le serveur 0.fr.pool.ntp.org et voir ce que ça donne?

Code :
1
2
 
ntpdate -dv 0.fr.pool.ntp.org
__________________
Alea Jacta Test!
Mygale1978 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 18/11/2011, 13h15   #5
Membre Expert
 
Avatar de Jon Shannow
 
Homme
Responsable de service informatique
Inscription : avril 2011
Messages : 786
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Ille et Vilaine (Bretagne)

Informations professionnelles :
Activité : Responsable de service informatique
Secteur : High Tech - Électronique et micro-électronique

Informations forums :
Inscription : avril 2011
Messages : 786
Points : 1 030
Points : 1 030
Voila ce que j'obtiens sur le nmap (même commande que toi)
Code :
1
2
3
4
5
6
7
8
9
 
Starting Nmap 5.21 ( http://nmap.org ) at 2011-11-18 13:11 CET
Nmap scan report for 0.fr.pool.ntp.org (88.190.227.30)
Host is up (0.024s latency).
Hostname 0.fr.pool.ntp.org resolves to 3 IPs. Only scanned 88.190.227.30
rDNS record for 88.190.227.30: wtf.roflcopter.fr
All 1000 scanned ports on 0.fr.pool.ntp.org (88.190.227.30) are open|filtered
 
Nmap done: 1 IP address (1 host up) scanned in 26.08 seconds
Puis sur le ntpdate
Code :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
18 Nov 13:12:25 ntpdate[18022]: ntpdate 4.2.4p8@1.1612-o Tue Apr 19 07:14:31 UTC 2011 (1)
Looking for host 0.fr.pool.ntp.org and service ntp
transmit(87.98.147.233)
transmit(193.55.167.1)
transmit(88.190.227.30)
transmit(87.98.147.233)
transmit(193.55.167.1)
transmit(88.190.227.30)
transmit(87.98.147.233)
transmit(193.55.167.1)
transmit(88.190.227.30)
transmit(87.98.147.233)
transmit(193.55.167.1)
transmit(88.190.227.30)
transmit(87.98.147.233)
transmit(193.55.167.1)
transmit(88.190.227.30)
87.98.147.233: Server dropped: no data
193.55.167.1: Server dropped: no data
88.190.227.30: Server dropped: no data
server 87.98.147.233, port 123
stratum 0, precision 0, leap 00, trust 000
refid [87.98.147.233], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:    00000000.00000000  Thu, Feb  7 2036  7:28:16.000
originate timestamp: 00000000.00000000  Thu, Feb  7 2036  7:28:16.000
transmit timestamp:  d270ca2c.932990f3  Fri, Nov 18 2011 13:12:28.574
filter delay:  0.00000  0.00000  0.00000  0.00000 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 0.000000 0.000000 0.000000 0.000000
         0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000
 
server 193.55.167.1, port 123
stratum 0, precision 0, leap 00, trust 000
refid [193.55.167.1], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:    00000000.00000000  Thu, Feb  7 2036  7:28:16.000
originate timestamp: 00000000.00000000  Thu, Feb  7 2036  7:28:16.000
transmit timestamp:  d270ca2c.c65cb35f  Fri, Nov 18 2011 13:12:28.774
filter delay:  0.00000  0.00000  0.00000  0.00000 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 0.000000 0.000000 0.000000 0.000000
         0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000
 
server 88.190.227.30, port 123
stratum 0, precision 0, leap 00, trust 000
refid [88.190.227.30], delay 0.00000, dispersion 64.00000
transmitted 4, in filter 4
reference time:    00000000.00000000  Thu, Feb  7 2036  7:28:16.000
originate timestamp: 00000000.00000000  Thu, Feb  7 2036  7:28:16.000
transmit timestamp:  d270ca2c.f98fc504  Fri, Nov 18 2011 13:12:28.974
filter delay:  0.00000  0.00000  0.00000  0.00000 
         0.00000  0.00000  0.00000  0.00000 
filter offset: 0.000000 0.000000 0.000000 0.000000
         0.000000 0.000000 0.000000 0.000000
delay 0.00000, dispersion 64.00000
offset 0.000000
18 Nov 13:12:29 ntpdate[18022]: no server suitable for synchronization found
Jon Shannow est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 19/11/2011, 12h05   #6
Expert Confirmé Sénior
 
Homme Laurent Willems
Expert Stop/Start
Inscription : septembre 2002
Messages : 2 551
Détails du profil
Informations personnelles :
Nom : Homme Laurent Willems
Âge : 33
Localisation : Belgique

Informations professionnelles :
Activité : Expert Stop/Start

Informations forums :
Inscription : septembre 2002
Messages : 2 551
Points : 4 271
Points : 4 271
Re,

Aurais-tu un firewall actif sur ton serveur? Si oui le désactiver et recommencer la synchro avec ntpdate et voir ce que ça donne.
__________________
Alea Jacta Test!
Mygale1978 est déconnecté   Envoyer un message privé Réponse avec citation 00
Vieux 21/11/2011, 11h55   #7
Membre Expert
 
Avatar de Jon Shannow
 
Homme
Responsable de service informatique
Inscription : avril 2011
Messages : 786
Détails du profil
Informations personnelles :
Sexe : Homme
Localisation : France, Ille et Vilaine (Bretagne)

Informations professionnelles :
Activité : Responsable de service informatique
Secteur : High Tech - Électronique et micro-électronique

Informations forums :
Inscription : avril 2011
Messages : 786
Points : 1 030
Points : 1 030
Citation:
Envoyé par Mygale1978 Voir le message
Re,

Aurais-tu un firewall actif sur ton serveur? Si oui le désactiver et recommencer la synchro avec ntpdate et voir ce que ça donne.
Sur le serveur, il ne me semble pas, par contre on a un netasq, mais le ntp est ouvert !
Jon Shannow est déconnecté   Envoyer un message privé Réponse avec citation 00
Réponse Proposer ce sujet en actualité
Outils de la discussion



Fuseau horaire GMT +2. Il est actuellement 13h43.


 
 
 
 
Partenaires

Hébergement Web