problems with ntpd configuration

From: Jozef Babjak (babjak_at_hilbert.chtf.stuba.sk)
Date: 02/23/04

  • Next message: John Hay: "Re: problems with ntpd configuration"
    Date: Mon, 23 Feb 2004 08:10:23 +0100
    To: freebsd-stable@freebsd.org
    
    

    Hi!

    I have a problem to configure properly a ntpd server for local network. I
    followed a handbook example, but maybe I didn't understand something well. My
    aim is to configure a ntpd server, allow to synchronize computers from local
    network according to this server and hide mentioned ntpd server for all
    computers out of local network.

    My ntp server is:

    >uname -a
    FreeBSD hilbert.chtf.stuba.sk 4.9-STABLE FreeBSD 4.9-STABLE #0: Wed Feb 11
    18:23:18 CET 2004 root@hilbert.chtf.stuba.sk:/usr/obj/usr/src/sys/HILBERT
    i386
    >

    ntpd server is allowed in rc.conf with no additional flags:

    xntpd_enable="YES"

    Its IP is 147.175.67.128, network is class B: 147.175.0.0 with netmask
    255.255.0.0. My ntp.conf:

    server public.stratum2.server1
    server public.stratum2.server2
    server public.stratum2.server3
    driftfile /var/db/ntp.drift
    # default to ignore
    restrict default ignore
    # allow my net to configure, byt not act my setting (according to handbook):
    restrict 147.175.0.0 mask 255.255.0.0 notrust nomodify notrap

    Server synchronize itself well, but when I try query from 147.175.64.41, i
    obtain:

    > ntpdate -vq 147.175.67.128
    23 Feb 07:54:52 ntpdate[6145]: ntpdate 4.1.0-a Fri Feb 6 09:54:31 CET 2004 (1)
    server 147.175.67.128, stratum 16, offset 0.301619, delay 0.02689
    23 Feb 07:54:52 ntpdate[6145]: no server suitable for synchronization found
    >

    ntpd is already running for several days, so it si synchronized and -- i think
    -- ready to serve.

    Can you help me with appropriate 'restrict' rule sets? No firewall is running
    here.

    Thanks, Jozef.
    _______________________________________________
    freebsd-stable@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-stable
    To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"


  • Next message: John Hay: "Re: problems with ntpd configuration"

    Relevant Pages

    • Re: NTP issues with 5.4
      ... trouble getting the ntpd server operate properly. ... on port 123, ... Once ntpd was running for some time on the gateway, ...
      (freebsd-questions)
    • Re: NTP issues with 5.4
      ... > trouble getting the ntpd server operate properly. ... > on port 123, ... this communication was blocked. ...
      (freebsd-questions)
    • Re: notes yes inbox no
      ... Hi - and thanks - on the local network i want to synch with my server and ... still am faced with the "synch status is on device" message. ... > In addition, if you note, the Activesync will allow you to synchronize ... > not selected the enable synchronization with server that appears on the ...
      (microsoft.public.pocketpc.activesync)
    • Re: ntpd start problems
      ... >> I got a problem with starting my ntpd server at boot. ... But the problem is that ntpdate fails in the script. ...
      (comp.os.linux.misc)
    • NTPd Server - Windows XP error
      ... I want to set up a ntpd server on my 5.2.1-RELEASE-p8. ... The version of ntp is ntpd 4.1.1b-a ... The peer's stratum is less than the ...
      (comp.unix.bsd.freebsd.misc)