From owner-freebsd-questions Mon Jan 6 9:53:20 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADFFC37B401 for ; Mon, 6 Jan 2003 09:53:19 -0800 (PST) Received: from mta02-svc.ntlworld.com (mta02-svc.ntlworld.com [62.253.162.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37F6743EB2 for ; Mon, 6 Jan 2003 09:53:05 -0800 (PST) (envelope-from jon@witchspace.com) Received: from witchspace.com ([80.3.251.242]) by mta02-svc.ntlworld.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with SMTP id <20030106175304.FIIJ14589.mta02-svc.ntlworld.com@witchspace.com> for ; Mon, 6 Jan 2003 17:53:04 +0000 Received: (qmail 27277 invoked from network); 6 Jan 2003 17:53:04 -0000 Received: from unknown (HELO witchspace.com) (192.168.0.1) by dookie.witchspace.com with SMTP; 6 Jan 2003 17:53:04 -0000 Message-ID: <3E19C280.8030201@witchspace.com> Date: Mon, 06 Jan 2003 17:53:04 +0000 From: Jonathan Belson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021219 X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Jack L. Stone" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: [Q] ipfw and 'me' References: <3E19B689.2090207@witchspace.com> <20030106171001.GA13668@submonkey.net> <3.0.5.32.20030106113121.011ef950@mail.sage-one.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Jack L. Stone wrote: > The best way to do this is to use "awk" to determine and set a variable for > the external IP every time it changes and then refer to that variable in > your rules. ifconfig | grep ^xl0 -1 | tail -n 1 | awk '{ print $2 }' Any neater way? :-) --Jon http://www.witchspace.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message