From owner-freebsd-questions Wed Dec 6 0: 4:20 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 00:04:18 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mailhost01.reflexnet.net (mailhost01.reflexnet.net [64.6.192.82]) by hub.freebsd.org (Postfix) with ESMTP id B485737B400 for ; Wed, 6 Dec 2000 00:04:17 -0800 (PST) Received: from 149.211.6.64.reflexcom.com ([64.6.211.149]) by mailhost01.reflexnet.net with Microsoft SMTPSVC(5.5.1877.197.19); Wed, 6 Dec 2000 00:02:41 -0800 Received: (from cjc@localhost) by 149.211.6.64.reflexcom.com (8.11.0/8.11.0) id eB684CA62280; Wed, 6 Dec 2000 00:04:12 -0800 (PST) (envelope-from cjc) Date: Wed, 6 Dec 2000 00:04:06 -0800 From: "Crist J . Clark" To: User Land Cc: freebsd-questions@FreeBSD.ORG Subject: Re: rc & ntp weirdness Message-ID: <20001206000406.F99903@149.211.6.64.reflexcom.com> Reply-To: cjclark@alum.mit.edu References: <381260687.976055183523.JavaMail.root@web349-mc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <381260687.976055183523.JavaMail.root@web349-mc>; from userland@techie.com on Tue, Dec 05, 2000 at 05:26:23PM -0500 Sender: cjc@149.211.6.64.reflexcom.com Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, Dec 05, 2000 at 05:26:23PM -0500, User Land wrote: > Hi, > > I recently installed 4.2 on a machine, and I was having trouble getting nat > & the firewall to work. > > As part of my trouble shooting, I added: > > echo "firewall type: $firewall_type" > echo "natd_enable" $natd_enable" > > what rc.firewall spit back when I ran 'source rc.firewall' > > was > firewall type: > natd_enable: > > It seemed that rc.firewall wasn't properly sourcing /etc/defaults/rc.conf or > /etc/rc.conf. Not surprising. source(1) is a csh'ism and rc.firewall is a sh script. Try it like, $ sh rc.firewall > My cheap fix was to set firewall_type and natd_enable in rc.firewall (after > the sourcing of /etc/defaults/rc.conf), and it all worked fine. > > I'd only edited /etc/rc.conf minimally (mostly via /stand/sysinstall) to > setup variables for the firewall & nat. I couldn't figure out what was > wrong--I'm hoping someone can help point out what might be the trouble, or > if there's a known issue like this with 4.2-Release. > > Also...I followed the instructions at mostgraveconcern for setting up an ntp > client (which works for me on a different 4.1 machine): > > rc.conf > ### Network Time Services options: ### > xntpd_enable="YES" > xntpd_program="ntpd" > xntpd_flags="-p /var/run/ntpd.pid" > > ntp.conf > server time.nist.gov prefer > server 127.127.1.0 Errr... What's that supposed to be? That's not a valid address. > fudge 127.127.1.0 stratum 10 > driftfile /etc/ntp.drift > > in var/log/messages, ntpd starts, > > Dec 1 12:12:34 batcave ntpd[371]: ntpd 4.0.99b Mon Nov 20 11:27:20 GMT 2000 > (1) > Dec 1 12:12:34 batcave ntpd[371]: using kernel phase-lock loop 2001 > > But no time adjustments are ever made, and /etc/ntp.drift doesn't get > created. The file won't be created right away. Can you use the ntpdc(8) command to talk to your local server? > I've read the man pages, and I'm at a loss as to why it's not making the > adjustments... (my firewall does allow the traffic, and ntpdate -b > time.nist.gov successfully changes the time (i'm running this hourly from a > cron job now since ntpd isn't working)). How do you know that ntpd is not doing anything? -- Crist J. Clark cjclark@alum.mit.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message