From owner-freebsd-stable Fri Nov 24 6:55:32 2000 Delivered-To: freebsd-stable@freebsd.org Received: from cx587235-a.chnd1.az.home.com (cx587235-a.chnd1.az.home.com [24.11.88.170]) by hub.freebsd.org (Postfix) with ESMTP id 6B68037B4CF for ; Fri, 24 Nov 2000 06:55:29 -0800 (PST) Received: from whale.home-net (whale [192.168.1.2]) by cx587235-a.chnd1.az.home.com (8.11.1/8.11.0) with ESMTP id eAOEtSa09737; Fri, 24 Nov 2000 07:55:28 -0700 (MST) (envelope-from jjreynold@home.com) Received: (from jjreynold@localhost) by whale.home-net (8.11.1/8.11.0) id eAOEtSt97719; Fri, 24 Nov 2000 07:55:28 -0700 (MST) (envelope-from jjreynold@home.com) From: John Reynolds MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14878.33120.223311.391897@whale.home-net> Date: Fri, 24 Nov 2000 07:55:28 -0700 (MST) To: wimo@osiricom.co.za Cc: FreeBSD-stable Subject: Re: Suggestion: NATD configuration in /etc/rc.network In-Reply-To: <3A1E59FC.E71456ED@osiricom.co.za> References: <3A1E1CAC.250A43A3@osiricom.co.za> <4315.129.128.23.67.975056087.squirrel@viaweb.epsb.net> <3A1E59FC.E71456ED@osiricom.co.za> X-Mailer: VM 6.75 under Emacs 20.7.1 Cc: Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG [ On Friday, November 24, Wim Olivier wrote: ] > I'm running stock standard 4.0-RELEASE and ed2 is my external interface > in this case. > My suggestion stands, because rc.network should the the NATD interface > name from the > natd_interface="ed2" entry in the rc.conf file on any FreeBSD box on > which natd is being configured. > I think it does ... from a 4.1.1-STABLE /etc/rc.network: # Network Address Translation daemon # case ${natd_enable} in [Yy][Ee][Ss]) if [ -n "${natd_interface}" ]; then if echo ${natd_interface} | \ grep -q -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$'; then natd_ifarg="-a ${natd_interface}" else natd_ifarg="-n ${natd_interface}" fi echo -n ' natd'; ${natd_program:-/sbin/natd} ${natd_flags} ${natd_ifarg} fi ;; esac Same exact thing exists in 4.2-STABLE's /etc/rc.network. It looks like it was that way in 4.0-RELEASE as well from scanning the CVS repos. -Jr -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= John Reynolds Chandler Capabilities Engineering, CDS, Intel Corporation jreynold@sedona.ch.intel.com My opinions are mine, not Intel's. Running jjreynold@home.com FreeBSD 4.1.1-STABLE. FreeBSD: The Power to Serve. http://members.home.com/jjreynold/ Come join us!!! @ http://www.FreeBSD.org/ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message