Date: Mon, 9 Dec 2002 18:17:27 -0800 From: Mike Makonnen <mtm@identd.net> To: leafy <leafy@leafy.idv.tw> Cc: freebsd-current@freebsd.org Subject: Re: Confused by mpd and ipnat Message-ID: <20021210021727.GB16008@matrix.identd.net> In-Reply-To: <20021209160621.GA665@leafy.idv.tw> References: <20021209160621.GA665@leafy.idv.tw>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 started 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. -- 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 [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE99U6z2uHir9vMaLkRAgdlAJ4qrWp3Ide4R2RqTj4PKcUf8EAHEQCg41ae 4GUmelmA4AwlSq02eAVCKNQ= =Agke -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021210021727.GB16008>
