Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 09 Dec 2002 17:11:08 +0100
From:      Michael Bretterklieber <mbretter@jawa.at>
To:        current@freebsd.org
Subject:   Re: Confused by mpd and ipnat
Message-ID:  <3DF4C09C.30506@jawa.at>
In-Reply-To: <20021209160621.GA665@leafy.idv.tw>
References:  <20021209160621.GA665@leafy.idv.tw>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DF4C09C.30506>