From owner-freebsd-net Mon Dec 9 8:13:30 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14FBB37B401 for ; Mon, 9 Dec 2002 08:13:29 -0800 (PST) Received: from seed.net.tw (sn15.seed.net.tw [139.175.54.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 489CB43EB2 for ; Mon, 9 Dec 2002 08:13:23 -0800 (PST) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.151.48] (port=49166 helo=leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.10:3) id 18LQWz-0008AQ-00 for freebsd-net@freebsd.org; Tue, 10 Dec 2002 00:13:17 +0800 Received: from leafy.idv.tw (localhost [127.0.0.1]) by leafy.idv.tw (8.12.6/8.12.6) with ESMTP id gB9GDGoU000636 for ; Tue, 10 Dec 2002 00:13:16 +0800 (CST) (envelope-from leafy@leafy.idv.tw) Received: (from leafy@localhost) by leafy.idv.tw (8.12.6/8.12.6/Submit) id gB9GDGaf000635 for freebsd-net@freebsd.org; Tue, 10 Dec 2002 00:13:16 +0800 (CST) Date: Tue, 10 Dec 2002 00:13:16 +0800 From: leafy To: freebsd-net@freebsd.org Subject: [leafy@leafy.idv.tw: Confused by mpd and ipnat] Message-ID: <20021209161316.GA625@leafy.idv.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline User-Agent: Mutt/1.5.1i Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ----- Forwarded message from leafy ----- 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 no traffice could be passed from the local network. (no mapping exists) Only after I do "ipnat -C && ipnat -f /etc/ipnat.rules" can I get traffice through. Is there anyway I can ensure that "ipnat -f /etc/ipnat.rules" get executed only after mpd has obtained proper ip settings? Thank you, JY To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message ----- End forwarded message ----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message