From owner-freebsd-hackers Fri Dec 1 15:39: 8 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.gmx.net (pop.gmx.net [194.221.183.20]) by hub.freebsd.org (Postfix) with SMTP id 7F49237B6B9 for ; Fri, 1 Dec 2000 15:24:05 -0800 (PST) Received: (qmail 18272 invoked by uid 0); 1 Dec 2000 23:24:03 -0000 Received: from p3ee21442.dip.t-dialin.net (HELO forge.local) (62.226.20.66) by mail.gmx.net (mail03) with SMTP; 1 Dec 2000 23:24:03 -0000 Received: from thomas by forge.local with local (Exim 3.16 #1 (Debian)) id 141zVW-0000h4-00 for ; Sat, 02 Dec 2000 00:22:22 +0100 Date: Sat, 2 Dec 2000 00:22:22 +0100 To: freebsd-hackers@freebsd.org Subject: Re: natd bug Message-ID: <20001202002222.A2616@crow.dom2ip.de> Mail-Followup-To: tmoestl@gmx.net, freebsd-hackers@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from frederik@freddym.org on Thu, Nov 30, 2000 at 08:25:15PM +0100 From: Thomas Moestl Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Nov 30, 2000 at 08:25:15PM +0100, Frederik Meerwaldt wrote: > I compiled my kernel with IPDIVERT IPFIREWALL and > IPFIREWALL_DEFAULT_TO_ACCEPT and I set up only one rule: > ipfw add divert natd all from any to any via isp0 > Then I started natd (at boot time): > natd -unregistered_only -dynamic -n isp0 > But when a package arrives (doesn't matter from localhost or another > host), natd gives out a kernel message: > > Nov 30 15:03:06 server natd[195]: failed to write packet back (Permission > denied) Is your link up at that time? The usual setup for a sppp device using dynamic ip's is an invalid ip (0.0.0.0) that is changed once an ip was assigned. So, if you are not dialled in, the invalid ip will be put in by natd, and that usually causes this error message. - Thomas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message