Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 19:44:45 +0100
From:      Holger Kipp <holger.kipp@alogis.com>
To:        Richard Nyberg <rnyberg@it.su.se>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Suggestion on natd rc scripts
Message-ID:  <3C6D571D.1D53EBEA@alogis.com>
References:  <20020215192647.A23116@gromit.it.su.se>

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

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




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