From owner-freebsd-current Tue Dec 10 2:42: 5 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAE6D37B401 for ; Tue, 10 Dec 2002 02:42:03 -0800 (PST) Received: from ns.plaut.de (ns.plaut.de [194.99.75.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id ABCFF43EC2 for ; Tue, 10 Dec 2002 02:42:02 -0800 (PST) (envelope-from root@nihil.plaut.de) Received: (from uucp@localhost) by ns.plaut.de (8.12.3/8.12.3) with UUCP id gBAAep6u050579; Tue, 10 Dec 2002 11:40:51 +0100 (CET) (envelope-from root@nihil.plaut.de) Received: from localhost (root@localhost) by nihil.plaut.de (8.12.6/8.12.2) with ESMTP id gBAAf5Ti000677; Tue, 10 Dec 2002 11:41:12 +0100 (CET) (envelope-from root@nihil.plaut.de) Date: Tue, 10 Dec 2002 11:41:05 +0100 (CET) From: Michael Reifenberger To: leafy Cc: freebsd-current@FreeBSD.ORG Subject: Re: Confused by mpd and ipnat In-Reply-To: <20021209160621.GA665@leafy.idv.tw> Message-ID: <20021210113937.E603-100000@nihil> References: <20021209160621.GA665@leafy.idv.tw> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 10 Dec 2002, leafy wrote: > Date: Tue, 10 Dec 2002 00:06:21 +0800 > From: leafy > To: freebsd-current@FreeBSD.ORG > Subject: Confused by mpd and ipnat > > I run -current and decided to try kernel PPPoE. I installed mpd from ports > which ran fine. After installing ipnat, I setup the following rule in > ipnat.rules: > > map ng0 192.168.0.0/24 -> 0/32 > > When I reboot, this line (along with ipnat stuff) got executed before mpd > fiinishes PPPoE negotiation, and ipnat -l shows that the ng0 ip was 0.0.0.0/32. > Is there anyway I can ensure that "ipnat -f /etc/ipnat.rules" get executed > only after mpd has obtained proper ip settings? No. Use a mpd.up Script like: ... /sbin/ipnat -F ... Bye! ---- Michael Reifenberger ^.*Plaut.*$, IT, R/3 Basis, GPS To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message