From owner-freebsd-stable Fri Feb 15 10:57:49 2002 Delivered-To: freebsd-stable@freebsd.org Received: from alogis.com (firewall.solit-ag.de [212.184.102.1]) by hub.freebsd.org (Postfix) with ESMTP id 1A30A37B416 for ; Fri, 15 Feb 2002 10:57:43 -0800 (PST) Received: from alogis.com (kipp@clausthal.int1.b.intern [10.1.1.30]) by alogis.com (8.11.1/8.9.3) with ESMTP id g1FIv4l23516; Fri, 15 Feb 2002 19:57:04 +0100 (CET) (envelope-from holger.kipp@alogis.com) Message-ID: <3C6D571D.1D53EBEA@alogis.com> Date: Fri, 15 Feb 2002 19:44:45 +0100 From: Holger Kipp X-Mailer: Mozilla 4.7 [en] (X11; U; Linux 2.2.13 i686) X-Accept-Language: en MIME-Version: 1.0 To: Richard Nyberg Cc: freebsd-stable@FreeBSD.ORG Subject: Re: Suggestion on natd rc scripts References: <20020215192647.A23116@gromit.it.su.se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Richard Nyberg wrote: > > I recently had some problem getting natd to start correctly from > th rc scripts. The root of the problem was that I had all settings > for natd in /etc/natd.conf and therefore only had the following > relevant variables set in rc.conf: > > #First try > natd_enable="YES" > natd_flags="-f /etc/natd.conf" > > This doesn't work since natd_interface is set to fxp0 by default, > which is wrong for me. So I tried again with the following: > > #Second try > natd_enable="YES" > natd_flags="-f /etc/natd.conf" > natd_interface= > > Of course this doesn't work either since rc.network doesn't start > natd if natd_interface is empty. > > Suggestion 1: > Set natd_interface to nothing by default, and let rc.network > start natd even if natd_interface isn't set. > > Suggestion 2: > All who dare touch rc.conf should always thoroughly check > the defaults and the relevant rc.* files or prepare being > locked out from their computer and suffer terribly ;) According to man natd, if -alias_address (-a) is not used, -interface (-i) must be used. Both are taken care of in rc.network. Unless the documentation is wrong, your suggestions doesn't make sense to me ;-) Anyway, I use ipnat ... Regards, Holger -- Holger Kipp, Dipl.-Math., Systemadministrator | alogis AG Fon: +49 (0)30 / 43 65 8 - 114 | Berliner Strasse 26 Fax: +49 (0)30 / 43 65 8 - 214 | D-13507 Berlin Tegel email: holger.kipp@alogis.com | http://www.alogis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message