From owner-freebsd-questions@FreeBSD.ORG Sat Nov 3 02:02:43 2007 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 17ADE16A468 for ; Sat, 3 Nov 2007 02:02:43 +0000 (UTC) (envelope-from rjhjr@cox.net) Received: from eastrmmtai114.cox.net (eastrmmtai114.cox.net [68.230.240.45]) by mx1.freebsd.org (Postfix) with ESMTP id 9CD7913C480 for ; Sat, 3 Nov 2007 02:02:41 +0000 (UTC) (envelope-from rjhjr@cox.net) Received: from eastrmimpo01.cox.net ([68.1.16.119]) by eastrmmtao101.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20071102233813.HCRQ17054.eastrmmtao101.cox.net@eastrmimpo01.cox.net>; Fri, 2 Nov 2007 19:38:13 -0400 Received: from localhost ([68.230.186.138]) by eastrmimpo01.cox.net with bizsmtp id 7ze21Y00C2zbV0s0000000; Fri, 02 Nov 2007 19:38:02 -0400 Date: Fri, 2 Nov 2007 18:38:13 -0500 From: Bob Hall To: deeptech71@gmail.com Message-ID: <20071102233813.GA79572@kongemord.krig.net> Mail-Followup-To: Bob Hall , deeptech71@gmail.com, freebsd-questions@freebsd.org References: <472AF4FF.9000803@gmail.com> <20071102141525.19a05fc7@gumby.homeunix.com.> <472B6552.9060602@gmail.com> <472B9DA8.6000800@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <472B9DA8.6000800@gmail.com> User-Agent: Mutt/1.4.2.1i Cc: freebsd-questions@freebsd.org Subject: Re: IPFW Rules and Games 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: Sat, 03 Nov 2007 02:02:43 -0000 On Fri, Nov 02, 2007 at 10:59:04PM +0100, deeptech71@gmail.com wrote: > > onet=`ifconfig xl0 | grep "inet " | awk '{print $6}'` > I'm not sure about this. Isn't the sixth word the broadcast address > (ending with .255)? It's correct. I've been using this in my firewall file since FBSD 4.something. No problems. By default, awk uses spaces as column delimiters. The line containing "inet " starts with eight spaces. Try it and see what happens.