[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Konfiguration NTP-Server



Hallo Liste!

Mein Ziel ist, meinen Linux-Rechner (Debian 3.0) als NTP-Server für meine M$ Windows 2000-Clients zu konfigurieren.

Zur Konfiguration des Servers:

    apt-get install ntp ntpdate


Hier ist meine "/etc/ntp.conf":

    # /etc/ntp.conf, configuration for ntpd

    # ntpd will use syslog() if logfile is not defined
    logfile /var/log/ntpd

    driftfile /var/lib/ntp/ntp.drift
    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

    ### lines starting 'server' are auto generated,
    ### use dpkg-reconfigure to modify those lines.

    server ntp1.ptb.de
    server ntp2.ptb.de


Anschließend habe ich den Dienst mit
    /etc/init.d/ntp stop
    /etc/init.d/ntp start

neu gestartet.


Nun zur Konfiguration eines Windows-Clients:

    cd \winnt\system32
    net stop W32Time
    net time /setsntp:server.mein-server.tld
    net start W32Time


Der Windows-Zeitgeber-Dienst steht auf "automatisch".
Bei den o.g. Befehlen wird kein Fehler gemeldet.
Trotzdem wird die Uhrzeit auf dem Windows-2000-Client nicht synchronisiert!


Die Ausgabe von "ps -A | grep ntp" ergibt:

    273 ? 00:00:00 ntpd


Und hier die Ausgabe von "netstat -plt":

    Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:32768 *:* LISTEN 211/rpc.statd
    tcp 0 0 *:pop3s *:* LISTEN 229/inetd
    tcp 0 0 *:time *:* LISTEN 229/inetd
    tcp 0 0 *:discard *:* LISTEN 229/inetd
    tcp 0 0 home.engelb:netbios-ssn *:* LISTEN 247/smbd
    tcp 0 0 localhost:netbios-ssn *:* LISTEN 247/smbd
    tcp 0 0 *:pop2 *:* LISTEN 229/inetd
    tcp 0 0 *:daytime *:* LISTEN 229/inetd
    tcp 0 0 *:pop3 *:* LISTEN 229/inetd
    tcp 0 0 *:sunrpc *:* LISTEN 119/portmap
    tcp 0 0 *:auth *:* LISTEN 229/inetd
    tcp 0 0 home.engelbracht:domain *:* LISTEN 201/named
    tcp 0 0 localhost:domain *:* LISTEN 201/named
    tcp 0 0 *:ssh *:* LISTEN 262/sshd
    tcp 0 0 *:ipp *:* LISTEN 220/cupsd
    tcp 0 0 *:3128 *:* LISTEN 311/(squid)
    tcp 0 0 *:smtp *:* LISTEN 229/inetd
    tcp 0 0 localhost:953 *:* LISTEN 201/named


Das Logfile sieht so aus:

25 Nov 18:18:18 ntpd[4066]: signal_no_reset: signal 17 had flags 4000000
    25 Nov 18:21:46 ntpd[4065]: time set 0.002445 s
    25 Nov 18:21:46 ntpd[4065]: synchronisation lost
    25 Nov 18:41:26 ntpd[4065]: kernel time discipline status change 1
    25 Nov 19:10:44 ntpd[4065]: ntpd exiting on signal 15
    25 Nov 19:13:25 ntpd[277]: signal_no_reset: signal 17 had flags 4000000
    25 Nov 19:16:45 ntpd[273]: time set -0.487288 s
    25 Nov 19:16:45 ntpd[273]: synchronisation lost


Vielleicht noch einige Hinweise (Newbie!):
- Auf meinem Linux-Rechner nutze einen Proxy (Squid). Muß ich event. hier eine Einstellung machen? - An meinen iptables-Einstellungen kann es eigentlich nicht liegen, da bei der INPUT-Regel aus dem internen Netz alles erlaubt ist.... Bei der OUTPUT-Regel ist ebenfalls alles erlaubt - Der Linux-Rechner dient als Router..... Alle anderen Dienste (http, https, ftp, und so weiter) funktionieren ohne Probleme.

Hat jemand eine Idee bzw. einen Tipp für mich?

Vielen Dank für Eure Mühe!


Gruß,

Thilo



Reply to: