From owner-freebsd-stable@FreeBSD.ORG Sun Feb 22 23:10:26 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 06EBF16A4CE for ; Sun, 22 Feb 2004 23:10:26 -0800 (PST) Received: from hilbert.chtf.stuba.sk (hilbert.chtf.stuba.sk [147.175.67.128]) by mx1.FreeBSD.org (Postfix) with SMTP id 3166343D1D for ; Sun, 22 Feb 2004 23:10:25 -0800 (PST) (envelope-from babjak@hilbert.chtf.stuba.sk) Received: (qmail 4213 invoked by uid 1000); 23 Feb 2004 07:10:23 -0000 Date: Mon, 23 Feb 2004 08:10:23 +0100 From: Jozef Babjak To: freebsd-stable@freebsd.org Message-ID: <20040223071023.GA4145@hilbert.chtf.stuba.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: problems with ntpd configuration X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: babjak@neuron.tuke.sk List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Feb 2004 07:10:26 -0000 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.