Hallo Liste, hab ein komisches Verhalten von NTP vestgestellt. Ausgangssituation: Router ist ein Alix-Board (2d13) mit 3 NICs. Im MiniPCI-Slot steckt eine WLAN-Karte. Mit hostapd wird der Rechner zum AP. NIC 1 = Internet (externe IP) NIC 2 = 192.168.1.1 NIC 3 = 192.168.1.2 (ungenutzt) WLAN = 192.168.1.3 Nun hab ich auf dem Rechner ntp mit folgenden Zeilen in der ntp.conf: # 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 192.168.1.0 mask 255.255.255.0 restrict 192.168.3.0 mask 255.255.255.0 restrict 127.0.0.1 restrict ::1 Die lokalen Rechner sollten die Zeit vom Router beziehen, bekommen aber keine Zeit. Nun hab ich testweise mal die ntp.conf am Router geändert zu: # 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 192.168.0.0 mask 255.255.0.0 #restrict 192.168.3.0 mask 255.255.255.0 restrict 127.0.0.1 restrict ::1 Nun funktioniert es, aber wieso ist das so? Kann ntp nicht mit zwei restricts unter 192.168.x.x umgehen? Ist das ein Bug? Hab ich wo was übersehen? PS: alle Rechner sind Debian wheezy, nur mein Arbeitsrechner ist Debian jessie -- mfG Sascha Man sehe die Physik genau durch, und man wird finden, dass die Phänomene sowie die Versuche, worauf sie gebaut ist, verschiedenen Wert haben. -- Goethe, Maximen und Reflektionen, Nr. 931
Attachment:
signature.asc
Description: This is a digitally signed message part