From owner-freebsd-questions Mon Jan 6 9:59: 4 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 D2B3537B401 for ; Mon, 6 Jan 2003 09:59:02 -0800 (PST) Received: from sage-american.com (adsl-65-71-135-139.dsl.crchtx.swbell.net [65.71.135.139]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEC5E43EE5 for ; Mon, 6 Jan 2003 09:58:53 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea.sage-american [192.168.0.3]) by sage-american.com (8.12.6/8.12.6) with SMTP id h06HvoJ7045453; Mon, 6 Jan 2003 11:57:50 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20030106115752.011ef950@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Mon, 06 Jan 2003 11:57:52 -0600 To: Jonathan Belson From: "Jack L. Stone" Subject: Re: [Q] ipfw and 'me' Cc: freebsd-questions@FreeBSD.ORG In-Reply-To: <3E19C280.8030201@witchspace.com> References: <3E19B689.2090207@witchspace.com> <20030106171001.GA13668@submonkey.net> <3.0.5.32.20030106113121.011ef950@mail.sage-one.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Status: No, hits=-0.5 required=4.5 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01 version=2.43-jlsrules1 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 At 05:53 PM 1.6.2003 +0000, Jonathan Belson wrote: >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 > On the nose, Jon....! Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message