Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Feb 2002 13:38:44 -0700
From:      Ian <freebsd@damnhippie.dyndns.org>
To:        freebsd-stable <freebsd-stable@freebsd.org>
Subject:   Re: Suggestion on natd rc scripts
Message-ID:  <B892BFE3.A2B9%freebsd@damnhippie.dyndns.org>
In-Reply-To: <002f01c1b65d$13834bb0$1200a8c0@gsicomp.on.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

>> I ran into exactly this same situation a couple weeks ago, and was outraged
>> by the fact that 1) fxp0 was hard-coded in a defaults file, and 2) the rc
>> files won't start natd without the interface being specified on the command
>> line.
>> 
> Well, *something* needs to be hard-coded in the defaults file.  What do you
> suggest?

I suggest that natd_interface="" be in the defaults.  If you add
natd_enable=yes to your rc.conf, it is then your responsibility to set
natd_flags and/or natd_interface to something that will work for you.

In rc.network, if natd_enable is Yes, then it validates that either (or
both) of natd_flags and natd_interface have non-empty values.  If so, it
starts natd.  If natd_enable is Yes and both flags and interface are empty,
it whines and doesn't start natd.

The only downside I can see to this change is that people who currently have
Intel Etherexpress NICs and have just natd_enable=yes in their rc.conf would
have to add natd_interface=fxp0 as part of their next upgrade.  Everyone
else is already going to have a natd_interface=<something> in their rc.conf
and nothing would need to change.  And those of us who want to specify the
interface in our natd.conf files will have the option of doing so and will
be able to remove the natd_interface=<something> from our rc.conf.

Who decided that Intel NICs should get primacy over other brands in this
case anyway?  Were payoffs involved?  Was pressure brought to bear?  Do we
need the ISU to investigate?  :-)

-- Ian


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?B892BFE3.A2B9%freebsd>