From owner-freebsd-current Mon Dec 9 18:17:34 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 ABF1237B404 for ; Mon, 9 Dec 2002 18:17:32 -0800 (PST) Received: from mail.identd.net (matrix.identd.net [64.172.21.201]) by mx1.FreeBSD.org (Postfix) with SMTP id 0D99F43EC2 for ; Mon, 9 Dec 2002 18:17:31 -0800 (PST) (envelope-from mtm@identd.net) Received: (qmail 17201 invoked by uid 1007); 10 Dec 2002 02:17:27 -0000 Date: Mon, 9 Dec 2002 18:17:27 -0800 From: Mike Makonnen To: leafy Cc: freebsd-current@freebsd.org Subject: Re: Confused by mpd and ipnat Message-ID: <20021210021727.GB16008@matrix.identd.net> References: <20021209160621.GA665@leafy.idv.tw> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+g7M9IMkV8truYOl" Content-Disposition: inline In-Reply-To: <20021209160621.GA665@leafy.idv.tw> User-Agent: Mutt/1.4i X-Operating-System: FreeBSD/4.7-STABLE (i386) 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 --+g7M9IMkV8truYOl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 10, 2002 at 12:06:21AM +0800, leafy wrote: > > 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? Does mpd install a startup script in /usr/local/etc/rc.d ? Does it get star= ted in the background? If it's script is in /usr/local/etc/rc.d then it gets run by the /etc/rc.d/local script which runs after /etc/rc.d/ipnat. In this case you can simply re-apply the rules after the negotiation is completed: /etc/rc.d/ipnat reload Cheers. --=20 Mike Makonnen | GPG-KEY: http://www.identd.net/~mtm/mtm.asc mtm@identd.net | Fingerprint: D228 1A6F C64E 120A A1C9 A3AA DAE1 E2AF DBCC= 68B9 --+g7M9IMkV8truYOl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE99U6z2uHir9vMaLkRAgdlAJ4qrWp3Ide4R2RqTj4PKcUf8EAHEQCg41ae 4GUmelmA4AwlSq02eAVCKNQ= =Agke -----END PGP SIGNATURE----- --+g7M9IMkV8truYOl-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message