From owner-freebsd-questions@FreeBSD.ORG Wed May 18 04:42:32 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 33B8116A4CE for ; Wed, 18 May 2005 04:42:32 +0000 (GMT) Received: from sol.quay.net (sol.quay.net [72.1.198.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id B220943DA4 for ; Wed, 18 May 2005 04:42:31 +0000 (GMT) (envelope-from go@quay.net) Received: from [127.0.0.1] (vega.quay.net [172.30.69.100]) by sol.quay.net (Postfix) with ESMTP id EA99D114037 for ; Wed, 18 May 2005 00:42:30 -0400 (EDT) Message-ID: <428AC7C2.10904@quay.net> Date: Wed, 18 May 2005 00:42:42 -0400 From: Gabriel O'Brien User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <200505180325.j4I3P5RZ062791@banyan.cs.ait.ac.th> In-Reply-To: <200505180325.j4I3P5RZ062791@banyan.cs.ait.ac.th> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: named & ntpd quirkyness X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 May 2005 04:42:32 -0000 Hi folks, I've a FreeBSD 5.4 system here that is running an ipfw firewall, ntpd, BIND, etc. and I'm having a strange little problem whenever I reboot my system. This system is a gateway multihomed with 4 interfaces and connected to the internet via plain old PPPoE/ADSL. For the most part everything seems to be working like a charm however whenever I reboot the server I have two issues: 1) named doesn't seem to be able to bind to the tun0 interface properly, I've got a few theories about this but none of them have gotten me anywhere! At first I thought it was my firewall rules, but after playing around with it, including building a firewall with "options IPFIREWALL_DEFAULT_TO_ACCEPT" and turning off all the rules I'm starting to think that wasn't it. I've wondered if it can't connect becasue that interface doesn't exist yet (since it's PPPoE), but I'm not sure about that either. At any rate the symptom is that named is listening and accepting queries on all of the interfaces including loopback, except the tun0 interface. There's currently nothing in the logs to suggest anything awry, though for a while I was getting these errors: May 9 21:03:48 sol named[284]: creating IPv4 interface tun0 failed; interface ignored I can't figure out what I might have done to stop those errors from appearing but they don't anymore. 2) ntpd doesn't connect properly to it's servers via the tun0 interface though this symptom is much more intermittent and I don't have any hard evidence other than my own two eyes to actually prove it ever happened. As of right now it's working fine. I've been trying to sort out this problem on and off for about a month of so on both 5.3 and 5.4 and haven't had a whole lot of luck. I'm wondering if anyone has any suggestions as to where I can look to sort this out. I have a doable workaround, essentially I just log in after a reboot and restart named and then everything is fine, but it's a bit of a hassle and if I forget eventually my server will stop resolving (when the zone expires in various caches out there)... this is how I discovered it the first time. I can post some more info on my setup if anyone thinks it will help, but I won't clutter up inboxes with loads of config files unless it's necessary. Thanks in advance for any help! -Gabe Gabriel M. O'Brien http://web.quay.net/