From owner-freebsd-questions Tue Dec 5 14:26:27 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 14:26:24 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from rmx195-mta.mail.com (rmx195-mta.mail.com [165.251.48.42]) by hub.freebsd.org (Postfix) with ESMTP id 4589837B400 for ; Tue, 5 Dec 2000 14:26:24 -0800 (PST) Received: from web349-mc (web349-mc.mail.com [165.251.48.91]) by rmx195-mta.mail.com (8.9.3/8.9.3) with SMTP id RAA02557; Tue, 5 Dec 2000 17:26:23 -0500 (EST) Message-ID: <381260687.976055183523.JavaMail.root@web349-mc> Date: Tue, 5 Dec 2000 17:26:23 -0500 (EST) From: User Land To: freebsd-questions@freebsd.org Subject: rc & ntp weirdness Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: mail.com X-Originating-IP: 208.48.124.8 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. 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 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. 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)). THanks! userland@techie.com ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message