From owner-freebsd-current Mon Dec 9 8:11:31 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 1E63E37B404 for ; Mon, 9 Dec 2002 08:11:30 -0800 (PST) Received: from jawa.at (inforum.at [213.229.17.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id 090AA43EB2 for ; Mon, 9 Dec 2002 08:11:23 -0800 (PST) (envelope-from mbretter@jawa.at) Received: from jawa.at (dings.jawa.at [192.168.200.60]) by jawa.at (8.12.6/8.12.6) with ESMTP id gB9GB87K073303 for ; Mon, 9 Dec 2002 17:11:08 +0100 (CET) (envelope-from mbretter@jawa.at) Message-ID: <3DF4C09C.30506@jawa.at> Date: Mon, 09 Dec 2002 17:11:08 +0100 From: Michael Bretterklieber Organization: JAWA Management Software GmbH User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-AT; rv:1.2.1) Gecko/20021130 X-Accept-Language: de, en MIME-Version: 1.0 To: current@freebsd.org Subject: Re: Confused by mpd and ipnat References: <20021209160621.GA665@leafy.idv.tw> In-Reply-To: <20021209160621.GA665@leafy.idv.tw> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-milter (http://amavis.org/) X-Spam-Status: No, hits=-2.8 required=5.0 tests=IN_REP_TO,NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES, SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_MOZILLA_UA, X_ACCEPT_LANG version=2.43 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 Hi, leafy schrieb: > 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? > You can set this rule in an iface up-script: set iface up-script script set iface down-script script bye, -- ------------------------------- ---------------------------------- Michael Bretterklieber - Michael.Bretterklieber@jawa.at JAWA Management Software GmbH - http://www.jawa.at Liebenauer Hauptstr. 200 -------------- privat ------------ A-8041 GRAZ GSM: ++43-(0)676-93 96 698 Tel: ++43-(0)316-403274-12 E-mail: mbretter@inode.at Fax: ++43-(0)316-403274-10 http://www.inode.at/mbretter ------------------------------- ---------------------------------- "...the number of UNIX installations has grown to 10, with more expected..." - Dennis Ritchie and Ken Thompson, June 1972 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message