From owner-freebsd-questions@FreeBSD.ORG Wed Mar 31 11:30:30 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 752DA1065676 for ; Wed, 31 Mar 2010 11:30:30 +0000 (UTC) (envelope-from walterk1@earthlink.net) Received: from pop-sarus.atl.sa.earthlink.net (pop-sarus.atl.sa.earthlink.net [207.69.195.72]) by mx1.freebsd.org (Postfix) with ESMTP id 4E9AB8FC23 for ; Wed, 31 Mar 2010 11:30:30 +0000 (UTC) Received: from user-0c6sn0e.cable.mindspring.com ([24.110.92.14] helo=[192.168.0.100]) by pop-sarus.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1Nww7x-0001oS-00; Wed, 31 Mar 2010 07:30:29 -0400 Message-ID: <4BB33254.7020904@earthlink.net> Date: Wed, 31 Mar 2010 06:30:28 -0500 From: Walter User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Bob Hall References: <4BB1F429.7030407@earthlink.net> <4BB21253.7050702@infracaninophile.co.uk> <4BB26A62.9020400@earthlink.net> <20100331001641.GA23999@stainmore> In-Reply-To: <20100331001641.GA23999@stainmore> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Questions Subject: Re: Setting firewall symbolic constants X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Mar 2010 11:30:30 -0000 Bob Hall wrote: >I use > onet=`ifconfig rl0 | grep "inet " | awk '{print $6}'` >where rl0 is the outward facing NIC on this gateway. > > Thanks. But I think I like a method which allows me to get the device names also, to allow a 'hands-off' configuring of the fw. I'll keep your code for future reference, tho.